Skip to content

Cargo test makes gtk application crash on OSX #5438

@GuillaumeGomez

Description

@GuillaumeGomez

Sorry but I can't get much information out of the run:

cargo test
   Compiling gtk-test v0.1.0 (file:///Users/imperio/rust/gtk-test)
    Finished dev [unoptimized + debuginfo] target(s) in 2.33 secs
     Running target/debug/deps/gtk_test-663922f61f003d55

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/basic-4ecdfe72bcff51e8

running 1 test

(process:1424): Gtk-WARNING **: 01:56:43.472: Locale not supported by C library.
	Using the fallback 'C' locale.
error: process didn't exit successfully: `/Users/imperio/rust/gtk-test/target/debug/deps/basic-4ecdfe72bcff51e8` (signal: 11, SIGSEGV: invalid memory reference)

It runs perfectly fine when the test code is moved inside a main and then run with cargo run but it just crashes without reason otherwise...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions