File tree 3 files changed +10
-9
lines changed
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() {
313
313
[FINISHED] bench [optimized] target(s) in [..]
314
314
[RUNNING] [..] (target/release/deps/foo-[..][EXE])" ,
315
315
)
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[..]" )
319
318
. with_stdout_contains ( "[..]left: `\" hello\" `[..]" )
320
319
. with_stdout_contains ( "[..]right: `\" nope\" `[..]" )
321
320
. 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() {
1269
1269
. run ( ) ;
1270
1270
cargo_process ( "fail" )
1271
1271
. 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[..]" )
1273
1274
. run ( ) ;
1274
1275
}
1275
1276
Original file line number Diff line number Diff line change @@ -387,8 +387,9 @@ test test_hello ... FAILED
387
387
failures:
388
388
389
389
---- test_hello stdout ----
390
- [..]thread '[..]' panicked at 'assertion failed: [..]" ,
390
+ [..]thread '[..]' panicked at [..]" ,
391
391
)
392
+ . with_stdout_contains ( "[..]assertion failed[..]" )
392
393
. with_stdout_contains ( "[..]`(left == right)`[..]" )
393
394
. with_stdout_contains ( "[..]left: `\" hello\" `,[..]" )
394
395
. with_stdout_contains ( "[..]right: `\" nope\" `[..]" )
@@ -437,10 +438,10 @@ test test_hello ... FAILED
437
438
failures:
438
439
439
440
---- test_hello stdout ----
440
- [..]thread '[..]' panicked at 'assertion failed: false', \
441
- tests/footest.rs:1[..]
441
+ [..]thread '[..]' panicked at [..]tests/footest.rs:1:[..]
442
442
" ,
443
443
)
444
+ . with_stdout_contains ( "[..]assertion failed[..]" )
444
445
. with_stdout_contains (
445
446
"\
446
447
failures:
@@ -473,10 +474,10 @@ test test_hello ... FAILED
473
474
failures:
474
475
475
476
---- test_hello stdout ----
476
- [..]thread '[..]' panicked at 'assertion failed: false', \
477
- src/lib.rs:1[..]
477
+ [..]thread '[..]' panicked at [..]src/lib.rs:1:[..]
478
478
" ,
479
479
)
480
+ . with_stdout_contains ( "[..]assertion failed[..]" )
480
481
. with_stdout_contains (
481
482
"\
482
483
failures:
You can’t perform that action at this time.
0 commit comments