File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -313,9 +313,8 @@ fn cargo_bench_failing_test() {
313313[FINISHED] bench [optimized] target(s) in [..]
314314[RUNNING] [..] (target/release/deps/foo-[..][EXE])" ,
315315 )
316- . with_stdout_contains (
317- "[..]thread '[..]' panicked at 'assertion failed: `(left == right)`[..]" ,
318- )
316+ . with_stdout_contains ( "[..]thread '[..]' panicked at[..]" )
317+ . with_stdout_contains ( "[..]assertion failed[..]" )
319318 . with_stdout_contains ( "[..]left: `\" hello\" `[..]" )
320319 . with_stdout_contains ( "[..]right: `\" nope\" `[..]" )
321320 . with_stdout_contains ( "[..]src/main.rs:15[..]" )
Original file line number Diff line number Diff line change @@ -1269,7 +1269,8 @@ fn reports_unsuccessful_subcommand_result() {
12691269 . run ( ) ;
12701270 cargo_process ( "fail" )
12711271 . with_status ( 101 )
1272- . with_stderr_contains ( "thread '[..]' panicked at 'explicit panic', [..]" )
1272+ . with_stderr_contains ( "thread '[..]' panicked at [..]src/main.rs:1:[..]" )
1273+ . with_stderr_contains ( "[..]explicit panic[..]" )
12731274 . run ( ) ;
12741275}
12751276
Original file line number Diff line number Diff line change @@ -387,8 +387,9 @@ test test_hello ... FAILED
387387failures:
388388
389389---- test_hello stdout ----
390- [..]thread '[..]' panicked at 'assertion failed: [..]" ,
390+ [..]thread '[..]' panicked at [..]" ,
391391 )
392+ . with_stdout_contains ( "[..]assertion failed[..]" )
392393 . with_stdout_contains ( "[..]`(left == right)`[..]" )
393394 . with_stdout_contains ( "[..]left: `\" hello\" `,[..]" )
394395 . with_stdout_contains ( "[..]right: `\" nope\" `[..]" )
@@ -437,10 +438,10 @@ test test_hello ... FAILED
437438failures:
438439
439440---- test_hello stdout ----
440- [..]thread '[..]' panicked at 'assertion failed: false', \
441- tests/footest.rs:1[..]
441+ [..]thread '[..]' panicked at [..]tests/footest.rs:1:[..]
442442" ,
443443 )
444+ . with_stdout_contains ( "[..]assertion failed[..]" )
444445 . with_stdout_contains (
445446 "\
446447 failures:
@@ -473,10 +474,10 @@ test test_hello ... FAILED
473474failures:
474475
475476---- test_hello stdout ----
476- [..]thread '[..]' panicked at 'assertion failed: false', \
477- src/lib.rs:1[..]
477+ [..]thread '[..]' panicked at [..]src/lib.rs:1:[..]
478478" ,
479479 )
480+ . with_stdout_contains ( "[..]assertion failed[..]" )
480481 . with_stdout_contains (
481482 "\
482483 failures:
You can’t perform that action at this time.
0 commit comments