Skip to content

Commit 4ebbda1

Browse files
committed
Ensure nonzero_exit_code test isn't affected by developers RUST_BACKTRACE setting
1 parent a4fe27a commit 4ebbda1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testsuite/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,6 +4869,7 @@ error: 2 targets failed:
48694869
.run();
48704870

48714871
p.cargo("test --no-fail-fast -- --nocapture")
4872+
.env_remove("RUST_BACKTRACE")
48724873
.with_stderr_does_not_contain("test exited abnormally; to see the full output pass --nocapture to the harness.")
48734874
.with_stderr_contains("[..]thread 't' panicked [..] tests/t1[..]")
48744875
.with_stderr_contains("note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace")

0 commit comments

Comments
 (0)