]> git.lizzy.rs Git - rust.git/commitdiff
panic/fork test: Do not run on emscripten
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 7 May 2021 15:15:53 +0000 (16:15 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 7 May 2021 15:51:13 +0000 (16:51 +0100)
fork fails there.  The failure message is confusing: so c.status()
returns an Err, the closure panics, and the test thinks the panic was
propagated from inside the child.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
library/std/src/sys/unix/process/process_unix/tests.rs

index 59953a2230fce4950372c48032dc1173814fd28f..d7915d81ebdec3fd1a28f872192b10b6c95170d3 100644 (file)
@@ -37,6 +37,7 @@ fn exitstatus_display_tests() {
 }
 
 #[test]
+#[cfg_attr(target_os = "emscripten", ignore)]
 fn test_command_fork_no_unwind() {
     let got = catch_unwind(|| {
         let mut c = Command::new("echo");