about summary refs log tree commit diff
path: root/src/test/ui/threads-sendsync/task-stderr.rs
diff options
context:
space:
mode:
authorAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-05 09:13:28 +0100
committerAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-11 09:32:08 +0000
commitcf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch)
tree40a88d9a46aaf3e8870676eb2538378b75a263eb /src/test/ui/threads-sendsync/task-stderr.rs
parentca855e6e42787ecd062d81d53336fe6788ef51a9 (diff)
Move /src/test to /tests
Diffstat (limited to 'src/test/ui/threads-sendsync/task-stderr.rs')
-rw-r--r--src/test/ui/threads-sendsync/task-stderr.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/test/ui/threads-sendsync/task-stderr.rs b/src/test/ui/threads-sendsync/task-stderr.rs
deleted file mode 100644
index 68d226ffbae..00000000000
--- a/src/test/ui/threads-sendsync/task-stderr.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-// run-pass
-// ignore-emscripten no threads support
-// needs-unwind
-
-#![feature(internal_output_capture)]
-
-use std::io;
-use std::str;
-use std::sync::{Arc, Mutex};
-use std::thread;
-
-fn main() {
-    let data = Arc::new(Mutex::new(Vec::new()));
-    let res = thread::Builder::new().spawn({
-        let data = data.clone();
-        move || {
-            io::set_output_capture(Some(data));
-            panic!("Hello, world!")
-        }
-    }).unwrap().join();
-    assert!(res.is_err());
-
-    let output = data.lock().unwrap();
-    let output = str::from_utf8(&output).unwrap();
-    assert!(output.contains("Hello, world!"));
-}