File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1314,7 +1314,7 @@ fn do_not_rebuilds_on_local_install() {
1314
1314
#[ cargo_test]
1315
1315
fn reports_unsuccessful_subcommand_result ( ) {
1316
1316
Package :: new ( "cargo-fail" , "1.0.0" )
1317
- . file ( "src/main.rs" , "fn main() { panic!(); }" )
1317
+ . file ( "src/main.rs" , r# "fn main() { panic!("EXPLICIT PANIC!" ); }"# )
1318
1318
. publish ( ) ;
1319
1319
cargo_process ( "install cargo-fail" ) . run ( ) ;
1320
1320
cargo_process ( "--list" )
@@ -1326,13 +1326,7 @@ fn reports_unsuccessful_subcommand_result() {
1326
1326
. run ( ) ;
1327
1327
cargo_process ( "fail" )
1328
1328
. with_status ( 101 )
1329
- . with_stderr_data ( str![ [ r#"
1330
- ...
1331
- thread 'main' panicked at [ROOT]/home/.cargo/registry/src/-[HASH]/cargo-fail-1.0.0/src/main.rs:1:13:
1332
- explicit panic
1333
- [NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1334
-
1335
- "# ] ] )
1329
+ . with_stderr_data ( "...\n [..]EXPLICIT PANIC![..]\n ..." )
1336
1330
. run ( ) ;
1337
1331
}
1338
1332
You can’t perform that action at this time.
0 commit comments