Skip to content

Commit

Permalink
keep trying which flags we need for this test until it passes bors
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 25, 2023
1 parent 339d636 commit df5a248
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion tests/ui/panics/panic-in-cleanup.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// run-fail
// exec-env:RUST_BACKTRACE=0
// check-run-results
// error-pattern: panic in a destructor during cleanup
// normalize-stderr-test: "\n +[0-9]+:[^\n]+" -> ""
// normalize-stderr-test: "\n +at [^\n]+" -> ""
// ignore-emscripten no processes
// needs-unwind
// ignore-emscripten "RuntimeError" junk in output
// ignore-msvc SEH doesn't do panic-during-cleanup the same way as everyone else

struct Bomb;

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/panics/panic-in-cleanup.run.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
thread 'main' panicked at $DIR/panic-in-cleanup.rs:18:5:
thread 'main' panicked at $DIR/panic-in-cleanup.rs:21:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at $DIR/panic-in-cleanup.rs:12:9:
thread 'main' panicked at $DIR/panic-in-cleanup.rs:15:9:
BOOM
stack backtrace:
thread 'main' panicked at library/core/src/panicking.rs:126:5:
Expand Down
4 changes: 3 additions & 1 deletion tests/ui/panics/panic-in-ffi.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// run-fail
// exec-env:RUST_BACKTRACE=0
// check-run-results
// error-pattern: panic in a function that cannot unwind
// normalize-stderr-test: "\n +[0-9]+:[^\n]+" -> ""
// normalize-stderr-test: "\n +at [^\n]+" -> ""
// ignore-emscripten no processes
// needs-unwind
// ignore-emscripten "RuntimeError" junk in output
#![feature(c_unwind)]

extern "C" fn panic_in_ffi() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/panics/panic-in-ffi.run.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
thread 'main' panicked at $DIR/panic-in-ffi.rs:10:5:
thread 'main' panicked at $DIR/panic-in-ffi.rs:12:5:
Test
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at library/core/src/panicking.rs:126:5:
Expand Down

0 comments on commit df5a248

Please sign in to comment.