Skip to content

Commit

Permalink
Auto merge of #13385 - Nemo157:test-system-decouple, r=epage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Feb 2, 2024
2 parents a4fe27a + 4ebbda1 commit 4b22dcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testsuite/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4b22dcf

Please sign in to comment.