about summary refs log tree commit diff
path: root/src/test/ui/process-termination
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/process-termination
parentca855e6e42787ecd062d81d53336fe6788ef51a9 (diff)
downloadrust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.tar.gz
rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.zip
Move /src/test to /tests
Diffstat (limited to 'src/test/ui/process-termination')
-rw-r--r--src/test/ui/process-termination/process-termination-blocking-io.rs19
-rw-r--r--src/test/ui/process-termination/process-termination-simple.rs13
2 files changed, 0 insertions, 32 deletions
diff --git a/src/test/ui/process-termination/process-termination-blocking-io.rs b/src/test/ui/process-termination/process-termination-blocking-io.rs
deleted file mode 100644
index b2dab5c9381..00000000000
--- a/src/test/ui/process-termination/process-termination-blocking-io.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// program should terminate even if a thread is blocked on I/O.
-// https://github.com/fortanix/rust-sgx/issues/109
-
-// run-pass
-// ignore-emscripten no threads support
-
-use std::{net::TcpListener, sync::mpsc, thread};
-
-fn main() {
-    let (tx, rx) = mpsc::channel();
-    thread::spawn(move || {
-        let listen = TcpListener::bind("127.0.0.1:0").unwrap();
-        tx.send(()).unwrap();
-        while let Ok(_) = listen.accept() {}
-    });
-    rx.recv().unwrap();
-    for _ in 0..3 { thread::yield_now(); }
-    println!("Exiting main thread");
-}
diff --git a/src/test/ui/process-termination/process-termination-simple.rs b/src/test/ui/process-termination/process-termination-simple.rs
deleted file mode 100644
index 8f2e5b94c3a..00000000000
--- a/src/test/ui/process-termination/process-termination-simple.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// program should terminate when std::process::exit is called from any thread
-
-// run-pass
-// ignore-emscripten no threads support
-
-use std::{process, thread};
-
-fn main() {
-    let h = thread::spawn(|| {
-        process::exit(0);
-    });
-    let _ = h.join();
-}