diff options
author | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-21 15:44:57 +0000 |
---|---|---|
committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-21 15:44:57 +0000 |
commit | 24588e6b3af018aaff628b98cd56383595b2d226 (patch) | |
tree | f214cca7f1519288ec68892772879587b80611d2 | |
parent | fe9dc6e62a312bc2fe01bb5ea65ea5d027ce878d (diff) | |
download | rust-24588e6b3af018aaff628b98cd56383595b2d226.tar.gz |
Old versions of Android generate SIGSEGV from libc::abort
-rw-r--r-- | library/std/src/sys/unix/process/process_unix/tests.rs | 7 |
1 files changed, 6 insertions, 1 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 157debf2d25..560c62155d9 100644 --- a/library/std/src/sys/unix/process/process_unix/tests.rs +++ b/library/std/src/sys/unix/process/process_unix/tests.rs @@ -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 + ); } |