Skip to content

Commit

Permalink
Uncomment unix os verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinh Tran committed Oct 26, 2023
1 parent 9a6959c commit b1d5428
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/panic_style/src/verify_abort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ fn test() {
.status()
.expect("Failed to spawn test process");
assert!(!status.success(), "Test process should have failed");
if cfg!(unix) {
use std::os::unix::process::ExitStatusExt;
if status.signal() != Some(SIGABRT) {
panic!("Test process failed in an unexpected way: {:?}", status);
}
} else {
// The Windows API doesn't let us validate anything else.
}
// if cfg!(unix) {
// use std::os::unix::process::ExitStatusExt;
// if status.signal() != Some(SIGABRT) {
// panic!("Test process failed in an unexpected way: {:?}", status);
// }
// } else {
// // The Windows API doesn't let us validate anything else.
// }
}

0 comments on commit b1d5428

Please sign in to comment.