mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Rollup merge of #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.
This commit is contained in:
commit
050c587e9e
@ -17,7 +17,10 @@ fn main() {
|
||||
|
||||
panic!();
|
||||
} else {
|
||||
let test = std::process::Command::new(&args[0]).arg("run_test").output().unwrap();
|
||||
let test = std::process::Command::new(&args[0]).arg("run_test")
|
||||
.env_remove("RUST_BACKTRACE")
|
||||
.output()
|
||||
.unwrap();
|
||||
assert!(!test.status.success());
|
||||
let err = String::from_utf8_lossy(&test.stderr);
|
||||
let mut it = err.lines();
|
||||
|
Loading…
Reference in New Issue
Block a user