Skip to content

Commit

Permalink
Ensure nonzero_exit_code test isn't affected by developers `RUST_BA…
Browse files Browse the repository at this point in the history
…CKTRACE` setting
  • Loading branch information
Nemo157 committed Feb 2, 2024
1 parent a4fe27a commit 4ebbda1
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 4ebbda1

Please sign in to comment.