Skip to content

Commit 24588e6

Browse files
committed
Old versions of Android generate SIGSEGV from libc::abort
1 parent fe9dc6e commit 24588e6

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,10 @@ fn test_command_fork_no_unwind() {
5353
let status = got.expect("panic unexpectedly propagated");
5454
dbg!(status);
5555
let signal = status.signal().expect("expected child process to die of signal");
56-
assert!(signal == libc::SIGABRT || signal == libc::SIGILL || signal == libc::SIGTRAP);
56+
assert!(
57+
signal == libc::SIGABRT
58+
|| signal == libc::SIGILL
59+
|| signal == libc::SIGTRAP
60+
|| signal == libc::SIGSEGV
61+
);
5762
}

0 commit comments

Comments
 (0)