Skip to content

Commit

Permalink
Old versions of Android generate SIGSEGV from libc::abort
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Jan 21, 2022
1 parent fe9dc6e commit 24588e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion library/std/src/sys/unix/process/process_unix/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,10 @@ fn test_command_fork_no_unwind() {
let status = got.expect("panic unexpectedly propagated");
dbg!(status);
let signal = status.signal().expect("expected child process to die of signal");
assert!(signal == libc::SIGABRT || signal == libc::SIGILL || signal == libc::SIGTRAP);
assert!(
signal == libc::SIGABRT
|| signal == libc::SIGILL
|| signal == libc::SIGTRAP
|| signal == libc::SIGSEGV
);
}

0 comments on commit 24588e6

Please sign in to comment.