Closed
Description
I receive Process didn't exit successfully: ... (signal: 4)
doing cargo test
. RUST_BACKTRACE=1 cargo test
gives nothing. Output:
Compiling play v0.0.1 (file:///Users/zummenix/projects/play)
Running target/debug/play-bc5fff1cb75e27c9
running 1 test
Process didn't exit successfully: `/Users/zummenix/projects/play/target/debug/play-bc5fff1cb75e27c9` (signal: 4)
I tried this code:
#[cfg(not(test))]
fn main() {
}
#[test]
#[should_panic]
fn panic() {
should_panic("string".to_string(), empty());
}
#[derive(Debug)]
struct Empty;
fn empty() -> Empty {
Empty
}
fn should_panic<U, T>(_: U, _: T) where T: std::fmt::Debug {
panic!("test panic");
}
I expected to see that test is passes.
Meta
rustc --version --verbose
:
rustc 1.1.0-nightly (c42c1e7a6 2015-05-02) (built 2015-05-01)
binary: rustc
commit-hash: c42c1e7a678a27bb63c24fb1eca2866af4e3ab7a
commit-date: 2015-05-02
build-date: 2015-05-01
host: x86_64-apple-darwin
release: 1.1.0-nightly