Skip to content

Commit d857a84

Browse files
committed
Tolerate SIGTRAP for panic abort after panic::always_abort
Some platforma (eg ARM64) apparently generate SIGTRAP for panic abort! See eg rust-lang#81858 (comment) This is probably a bug, but we don't want to entangle this MR with it. When it's fixed, this commit should be reverted. Signed-off-by: Ian Jackson <[email protected]>
1 parent 843cf33 commit d857a84

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ 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);
56+
assert!(signal == libc::SIGABRT || signal == libc::SIGILL || signal == libc::SIGTRAP);
5757
}

0 commit comments

Comments
 (0)