mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Ensure nonzero_exit_code
test isn't affected by developers RUST_BACKTRACE
setting
This commit is contained in:
parent
a4fe27a4ba
commit
4ebbda15e1
@ -4869,6 +4869,7 @@ error: 2 targets failed:
|
||||
.run();
|
||||
|
||||
p.cargo("test --no-fail-fast -- --nocapture")
|
||||
.env_remove("RUST_BACKTRACE")
|
||||
.with_stderr_does_not_contain("test exited abnormally; to see the full output pass --nocapture to the harness.")
|
||||
.with_stderr_contains("[..]thread 't' panicked [..] tests/t1[..]")
|
||||
.with_stderr_contains("note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace")
|
||||
|
Loading…
x
Reference in New Issue
Block a user