Skip to content

Commit

Permalink
Fix invalid_const_promotion test on some archs
Browse files Browse the repository at this point in the history
On at least AArch64 `llvm.trap` raises SIGTRAP.
  • Loading branch information
James Duley committed Oct 31, 2018
1 parent de9666f commit 01e0d23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/run-pass/invalid_const_promotion.rs
Expand Up @@ -39,6 +39,7 @@ fn check_status(status: std::process::ExitStatus)
use std::os::unix::process::ExitStatusExt;

assert!(status.signal() == Some(libc::SIGILL)
|| status.signal() == Some(libc::SIGTRAP)
|| status.signal() == Some(libc::SIGABRT));
}

Expand Down

0 comments on commit 01e0d23

Please sign in to comment.