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 19
19
//! Otherwise the tests are skipped.
20
20
21
21
#![ allow( clippy:: disallowed_methods) ]
22
- #![ allow( deprecated) ]
23
22
24
23
use cargo_test_support:: * ;
25
24
use std:: env;
@@ -113,10 +112,11 @@ fn basic() {
113
112
. target_host ( )
114
113
// Importantly, this should not say [UPDATING]
115
114
// 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
+ "# ] ] )
120
120
. run ( ) ;
121
121
p. cargo ( "run" ) . build_std ( ) . target_host ( ) . run ( ) ;
122
122
p. cargo ( "test" ) . build_std ( ) . target_host ( ) . run ( ) ;
@@ -261,15 +261,6 @@ fn remap_path_scope() {
261
261
. build_std ( )
262
262
. target_host ( )
263
263
. 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 ![ ] )
274
265
. run ( ) ;
275
266
}
You can’t perform that action at this time.
0 commit comments