From 689defd4ba662e032d157f64f982feec85c9216e Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Mon, 14 Aug 2023 19:10:17 +0100 Subject: [PATCH] test: relax assertions of panic message (again) --- tests/testsuite/bench.rs | 6 +++--- tests/testsuite/test.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/testsuite/bench.rs b/tests/testsuite/bench.rs index 64b13f48b65..5b59a56a436 100644 --- a/tests/testsuite/bench.rs +++ b/tests/testsuite/bench.rs @@ -314,9 +314,9 @@ fn cargo_bench_failing_test() { [RUNNING] [..] (target/release/deps/foo-[..][EXE])", ) .with_stdout_contains("[..]thread '[..]' panicked at[..]") - .with_stdout_contains("[..]assertion failed[..]") - .with_stdout_contains("[..]left: `\"hello\"`[..]") - .with_stdout_contains("[..]right: `\"nope\"`[..]") + .with_stdout_contains("[..]assertion [..]failed[..]") + .with_stdout_contains("[..]left: [..]\"hello\"[..]") + .with_stdout_contains("[..]right: [..]\"nope\"[..]") .with_stdout_contains("[..]src/main.rs:15[..]") .with_status(101) .run(); diff --git a/tests/testsuite/test.rs b/tests/testsuite/test.rs index 4820c7dcd78..a90ab0fd04c 100644 --- a/tests/testsuite/test.rs +++ b/tests/testsuite/test.rs @@ -389,10 +389,10 @@ failures: ---- test_hello stdout ---- [..]thread '[..]' panicked at [..]", ) - .with_stdout_contains("[..]assertion failed[..]") - .with_stdout_contains("[..]`(left == right)`[..]") - .with_stdout_contains("[..]left: `\"hello\"`,[..]") - .with_stdout_contains("[..]right: `\"nope\"`[..]") + .with_stdout_contains("[..]assertion [..]failed[..]") + .with_stdout_contains("[..]left == right[..]") + .with_stdout_contains("[..]left: [..]\"hello\"[..]") + .with_stdout_contains("[..]right: [..]\"nope\"[..]") .with_stdout_contains("[..]src/main.rs:12[..]") .with_stdout_contains( "\