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:
Manish Goregaokar 2016-01-29 20:19:38 +05:30
commit 050c587e9e

View File

@ -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();