File tree 4 files changed +10
-5
lines changed
4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
// run-fail
2
+ // exec-env:RUST_BACKTRACE=0
2
3
// check-run-results
3
4
// error-pattern: panic in a destructor during cleanup
4
5
// normalize-stderr-test: "\n +[0-9]+:[^\n]+" -> ""
5
6
// normalize-stderr-test: "\n +at [^\n]+" -> ""
6
- // ignore-emscripten no processes
7
+ // needs-unwind
8
+ // ignore-emscripten "RuntimeError" junk in output
9
+ // ignore-msvc SEH doesn't do panic-during-cleanup the same way as everyone else
7
10
8
11
struct Bomb ;
9
12
Original file line number Diff line number Diff line change 1
- thread 'main' panicked at $DIR/panic-in-cleanup.rs:18 :5:
1
+ thread 'main' panicked at $DIR/panic-in-cleanup.rs:21 :5:
2
2
explicit panic
3
3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
4
- thread 'main' panicked at $DIR/panic-in-cleanup.rs:12 :9:
4
+ thread 'main' panicked at $DIR/panic-in-cleanup.rs:15 :9:
5
5
BOOM
6
6
stack backtrace:
7
7
thread 'main' panicked at library/core/src/panicking.rs:126:5:
Original file line number Diff line number Diff line change 1
1
// run-fail
2
+ // exec-env:RUST_BACKTRACE=0
2
3
// check-run-results
3
4
// error-pattern: panic in a function that cannot unwind
4
5
// normalize-stderr-test: "\n +[0-9]+:[^\n]+" -> ""
5
6
// normalize-stderr-test: "\n +at [^\n]+" -> ""
6
- // ignore-emscripten no processes
7
+ // needs-unwind
8
+ // ignore-emscripten "RuntimeError" junk in output
7
9
#![ feature( c_unwind) ]
8
10
9
11
extern "C" fn panic_in_ffi ( ) {
Original file line number Diff line number Diff line change 1
- thread 'main' panicked at $DIR/panic-in-ffi.rs:10 :5:
1
+ thread 'main' panicked at $DIR/panic-in-ffi.rs:12 :5:
2
2
Test
3
3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
4
4
thread 'main' panicked at library/core/src/panicking.rs:126:5:
You can’t perform that action at this time.
0 commit comments