File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11// run-fail
2+ // exec-env:RUST_BACKTRACE=0
23// check-run-results
34// error-pattern: panic in a destructor during cleanup
45// normalize-stderr-test: "\n +[0-9]+:[^\n]+" -> ""
56// 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
710
811struct Bomb ;
912
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:
22explicit panic
33note: 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:
55BOOM
66stack backtrace:
77thread 'main' panicked at library/core/src/panicking.rs:126:5:
Original file line number Diff line number Diff line change 11// run-fail
2+ // exec-env:RUST_BACKTRACE=0
23// check-run-results
34// error-pattern: panic in a function that cannot unwind
45// normalize-stderr-test: "\n +[0-9]+:[^\n]+" -> ""
56// normalize-stderr-test: "\n +at [^\n]+" -> ""
6- // ignore-emscripten no processes
7+ // needs-unwind
8+ // ignore-emscripten "RuntimeError" junk in output
79#![ feature( c_unwind) ]
810
911extern "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:
22Test
33note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
44thread 'main' panicked at library/core/src/panicking.rs:126:5:
You can’t perform that action at this time.
0 commit comments