Skip to content

Commit 8220f2f

Browse files
ijacksonm-ou-se
andcommitted
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 <[email protected]> Co-authored-by: Mara Bos <[email protected]>
1 parent 756771d commit 8220f2f

File tree

1 file changed

+1
-0
lines changed
  • library/std/src/sys/unix/process/process_unix

1 file changed

+1
-0
lines changed

library/std/src/sys/unix/process/process_unix/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ fn exitstatus_display_tests() {
3737
}
3838

3939
#[test]
40+
#[cfg_attr(target_os = "emscripten", ignore)]
4041
fn test_command_fork_no_unwind() {
4142
let got = catch_unwind(|| {
4243
let mut c = Command::new("echo");

0 commit comments

Comments
 (0)