Skip to content

Commit 4b22dcf

Browse files
committed
Auto merge of #13385 - Nemo157:test-system-decouple, r=epage
Ensure `nonzero_exit_code` test isn't affected by developers `RUST_BACKTRACE` setting ### What does this PR try to resolve? If testing while having `RUST_BACKTRACE=1` set this test fails as it doesn't contain the expected note about setting it.
2 parents a4fe27a + 4ebbda1 commit 4b22dcf

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)