diff options
Diffstat (limited to 'src/test/ui/test-attrs/test-thread-nocapture.rs')
-rw-r--r-- | src/test/ui/test-attrs/test-thread-nocapture.rs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/ui/test-attrs/test-thread-nocapture.rs b/src/test/ui/test-attrs/test-thread-nocapture.rs deleted file mode 100644 index 2b57eb8aa..000000000 --- a/src/test/ui/test-attrs/test-thread-nocapture.rs +++ /dev/null @@ -1,33 +0,0 @@ -// compile-flags: --test -// run-fail -// run-flags: --test-threads=1 --nocapture -// check-run-results -// exec-env:RUST_BACKTRACE=0 -// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" -// ignore-emscripten no threads support -// needs-unwind - -#[test] -fn thready_pass() { - println!("fee"); - std::thread::spawn(|| { - println!("fie"); - println!("foe"); - }) - .join() - .unwrap(); - println!("fum"); -} - -#[test] -fn thready_fail() { - println!("fee"); - std::thread::spawn(|| { - println!("fie"); - println!("foe"); - }) - .join() - .unwrap(); - println!("fum"); - panic!(); -} |