summaryrefslogtreecommitdiff
path: root/user/rust/0011-test-invalid_const_promotion-Accept-SIGTRAP-as-a-val.patch
blob: b2bd46ab787138db5a356a0bf5664ff991f99c97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From c4ed34adcd7649f886354115132fb18489ed91dc Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Sun, 16 Sep 2018 16:37:09 +0000
Subject: [PATCH 11/28] test/invalid_const_promotion: Accept SIGTRAP as a valid
 death signal

---
 src/test/run-pass/invalid_const_promotion.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/run-pass/invalid_const_promotion.rs b/src/test/run-pass/invalid_const_promotion.rs
index 53cb4c4b00..dc4c0a51dd 100644
--- a/src/test/run-pass/invalid_const_promotion.rs
+++ b/src/test/run-pass/invalid_const_promotion.rs
@@ -33,6 +33,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));
 }
 
-- 
2.18.0