Old versions of Android generate SIGSEGV from libc::abort · rust-lang/rust@24588e6 (original) (raw)
File tree
1 file changed
lines changed
- library/std/src/sys/unix/process/process_unix
1 file changed
lines changed
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
@@ -53,5 +53,10 @@ fn test_command_fork_no_unwind() { | |||
53 | 53 | let status = got.expect("panic unexpectedly propagated"); | |
54 | 54 | dbg!(status); | |
55 | 55 | let signal = status.signal().expect("expected child process to die of signal"); | |
56 | -assert!(signal == libc::SIGABRT | | signal == libc::SIGILL | |
56 | +assert!( | ||
57 | + signal == libc::SIGABRT | ||
58 | + | | signal == libc::SIGILL | |
59 | + | | signal == libc::SIGTRAP | |
60 | + | | signal == libc::SIGSEGV | |
61 | +); | ||
57 | 62 | } |