From 4ebbda15e1d88ded2079e200d31930fa25413b42 Mon Sep 17 00:00:00 2001 From: Wim Looman Date: Fri, 2 Feb 2024 16:04:21 +0100 Subject: [PATCH] Ensure `nonzero_exit_code` test isn't affected by developers `RUST_BACKTRACE` setting --- tests/testsuite/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testsuite/test.rs b/tests/testsuite/test.rs index 612b6e1d82b..a340f6586e9 100644 --- a/tests/testsuite/test.rs +++ b/tests/testsuite/test.rs @@ -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")