diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-05-07 16:15:53 +0100 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-05-07 16:51:13 +0100 |
| commit | 8220f2f2127b9aec972163ded97be7d8cff6b9a8 (patch) | |
| tree | a7f3831f596b00e68742cc00784be02afb80af42 /library/std/src/sys | |
| parent | 756771d54c28c4543d620891e971bf5a95c3ea3e (diff) | |
| download | rust-8220f2f2127b9aec972163ded97be7d8cff6b9a8.tar.gz rust-8220f2f2127b9aec972163ded97be7d8cff6b9a8.zip | |
panic/fork test: Do not run on emscripten
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>
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix/tests.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/process/process_unix/tests.rs b/library/std/src/sys/unix/process/process_unix/tests.rs index 59953a2230f..d7915d81ebd 100644 --- a/library/std/src/sys/unix/process/process_unix/tests.rs +++ b/library/std/src/sys/unix/process/process_unix/tests.rs @@ -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"); |
