Skip to content

Commit 050c587

Browse files
committed
Rollup merge of rust-lang#31256 - oli-obk:patch-1, r=nagisa
if the tests were run with `RUST_BACKTRACE=1 make check` this test failed. If they were run without `RUST_BACKTRACE=1` it succeeded.
2 parents cbfc5e3 + 5012d20 commit 050c587

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/run-pass/multi-panic.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ fn main() {
1717

1818
panic!();
1919
} else {
20-
let test = std::process::Command::new(&args[0]).arg("run_test").output().unwrap();
20+
let test = std::process::Command::new(&args[0]).arg("run_test")
21+
.env_remove("RUST_BACKTRACE")
22+
.output()
23+
.unwrap();
2124
assert!(!test.status.success());
2225
let err = String::from_utf8_lossy(&test.stderr);
2326
let mut it = err.lines();

0 commit comments

Comments
 (0)