From a8627c4eda3b237318b9c759fe987ed7571a9a47 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Fri, 1 Sep 2023 01:15:23 +0300 Subject: [PATCH] fix(tests): don't treat compile_failure tests as successful if they cause the compiler to crash --- crates/nargo_cli/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nargo_cli/build.rs b/crates/nargo_cli/build.rs index 5a5616e21aa..d6f51061a1c 100644 --- a/crates/nargo_cli/build.rs +++ b/crates/nargo_cli/build.rs @@ -190,7 +190,7 @@ fn compile_failure_{test_name}() {{ cmd.arg("--program-dir").arg(test_program_dir); cmd.arg("execute"); - cmd.assert().failure(); + cmd.assert().failure().stderr(predicate::str::contains("The application panicked (crashed).").not()); }} "#, test_dir = test_dir.display(),