File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 1919//! Otherwise the tests are skipped.
2020
2121#![ allow( clippy:: disallowed_methods) ]
22- #![ allow( deprecated) ]
2322
2423use cargo_test_support:: * ;
2524use std:: env;
@@ -113,10 +112,11 @@ fn basic() {
113112 . target_host ( )
114113 // Importantly, this should not say [UPDATING]
115114 // There have been multiple bugs where every build triggers and update.
116- . with_stderr (
117- "[COMPILING] foo v0.0.1 [..]\n \
118- [FINISHED] `dev` profile [..]",
119- )
115+ . with_stderr_data ( str![ [ r#"
116+ [COMPILING] foo v0.0.1 ([ROOT]/foo)
117+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
118+
119+ "# ] ] )
120120 . run ( ) ;
121121 p. cargo ( "run" ) . build_std ( ) . target_host ( ) . run ( ) ;
122122 p. cargo ( "test" ) . build_std ( ) . target_host ( ) . run ( ) ;
@@ -261,15 +261,6 @@ fn remap_path_scope() {
261261 . build_std ( )
262262 . target_host ( )
263263 . with_status ( 101 )
264- . with_stderr_contains (
265- "\
266- [FINISHED] `release` profile [optimized + debuginfo] [..]
267- [RUNNING] [..]
268- [..]thread '[..]' panicked at [..]src/main.rs:3:[..]" ,
269- )
270- . with_stderr_contains ( "remap to /rustc/<hash>" )
271- . with_stderr_contains ( "[..]at /rustc/[..]/library/std/src/[..]" )
272- . with_stderr_contains ( "[..]at src/main.rs:3[..]" )
273- . with_stderr_contains ( "[..]at /rustc/[..]/library/core/src/[..]" )
264+ . with_stderr_data ( str ![ ] )
274265 . run ( ) ;
275266}
You can’t perform that action at this time.
0 commit comments