File tree 2 files changed +21
-2
lines changed
src/test/run-pass/panic-runtime
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,17 @@ fn main() {
27
27
exit_success_if_unwind:: bar ( do_panic) ;
28
28
}
29
29
}
30
- let s = Command :: new ( env:: args_os ( ) . next ( ) . unwrap ( ) ) . arg ( "foo" ) . status ( ) ;
30
+
31
+ let mut cmd = Command :: new ( env:: args_os ( ) . next ( ) . unwrap ( ) ) ;
32
+ cmd. arg ( "foo" ) ;
33
+
34
+
35
+ // ARMv6 hanges while printing the backtrace, see #41004
36
+ if cfg ! ( target_arch = "arm" ) && cfg ! ( target_env = "gnu" ) {
37
+ cmd. env ( "RUST_BACKTRACE" , "0" ) ;
38
+ }
39
+
40
+ let s = cmd. status ( ) ;
31
41
assert ! ( s. unwrap( ) . code( ) != Some ( 0 ) ) ;
32
42
}
33
43
Original file line number Diff line number Diff line change @@ -35,6 +35,15 @@ fn main() {
35
35
panic ! ( "try to catch me" ) ;
36
36
}
37
37
}
38
- let s = Command :: new ( env:: args_os ( ) . next ( ) . unwrap ( ) ) . arg ( "foo" ) . status ( ) ;
38
+
39
+ let mut cmd = Command :: new ( env:: args_os ( ) . next ( ) . unwrap ( ) ) ;
40
+ cmd. arg ( "foo" ) ;
41
+
42
+ // ARMv6 hanges while printing the backtrace, see #41004
43
+ if cfg ! ( target_arch = "arm" ) && cfg ! ( target_env = "gnu" ) {
44
+ cmd. env ( "RUST_BACKTRACE" , "0" ) ;
45
+ }
46
+
47
+ let s = cmd. status ( ) ;
39
48
assert ! ( s. unwrap( ) . code( ) != Some ( 0 ) ) ;
40
49
}
You can’t perform that action at this time.
0 commit comments