summaryrefslogblamecommitdiff
path: root/user/rust/0014-test-invalid_const_promotion-Accept-SIGTRAP-as-a-val.patch
blob: e892735a26fa4f3e74bebf422a91e4cb059a71a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                                      

                                          
                                                                              






                                                                                                        
                                   

                                                  
                                                                   







                                                        
      
 
From 52f262296db19bcb35410a05786e58a239216ba8 Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Sun, 16 Sep 2018 16:37:09 +0000
Subject: [PATCH 14/23] 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 ed8c499241..0f354e1aad 100644
--- a/src/test/run-pass/invalid_const_promotion.rs
+++ b/src/test/run-pass/invalid_const_promotion.rs
@@ -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));
 }
 
-- 
2.19.2