about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authory21 <30553356+y21@users.noreply.github.com>2024-09-26 14:08:22 +0200
committery21 <30553356+y21@users.noreply.github.com>2024-10-01 19:21:30 +0200
commitf06a46ee4dc7587c5f353dc2e396e996068cebac (patch)
tree6d1b6c9a23e6c43b7ceabef1a392139d5a846640 /tests
parentdb1bda3df17729f73235fb5dbc1726bf2efae6e7 (diff)
downloadrust-f06a46ee4dc7587c5f353dc2e396e996068cebac.tar.gz
rust-f06a46ee4dc7587c5f353dc2e396e996068cebac.zip
consider `wait()` calls in nested bodies
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/zombie_processes.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/zombie_processes.rs b/tests/ui/zombie_processes.rs
index a2abc7fc3a1..b41bcce3f7f 100644
--- a/tests/ui/zombie_processes.rs
+++ b/tests/ui/zombie_processes.rs
@@ -131,6 +131,13 @@ fn main() {
         }
         x.wait().unwrap();
     }
+
+    {
+        let mut x = Command::new("").spawn().unwrap();
+        std::thread::spawn(move || {
+            x.wait().unwrap();
+        });
+    }
 }
 
 fn process_child(c: Child) {