File tree 1 file changed +9
-11
lines changed 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
1
//! Tests for --timings.
2
2
3
- #![ allow( deprecated) ]
4
-
5
3
use cargo_test_support:: project;
6
4
use cargo_test_support:: registry:: Package ;
5
+ use cargo_test_support:: str;
7
6
8
7
#[ cargo_test]
9
8
fn timings_works ( ) {
@@ -29,18 +28,17 @@ fn timings_works() {
29
28
. build ( ) ;
30
29
31
30
p. cargo ( "build --all-targets --timings" )
32
- . with_stderr_unordered (
33
- "\
34
- [UPDATING] [..]
31
+ . with_stderr_data ( str![ [ r#"
32
+ [UPDATING] `dummy-registry` index
35
33
[LOCKING] 2 packages to latest compatible versions
36
34
[DOWNLOADING] crates ...
37
- [DOWNLOADED] dep v0.1.0 [..]
35
+ [DOWNLOADED] dep v0.1.0 (registry `dummy-registry`)
38
36
[COMPILING] dep v0.1.0
39
- [COMPILING] foo v0.1.0 [..]
40
- [FINISHED] [..]
41
- Timing report saved to [..]/foo/target/cargo-timings/cargo-timing-[..].html
42
- " ,
43
- )
37
+ [COMPILING] foo v0.1.0 ([ROOT]/foo)
38
+ Timing report saved to [ROOT]/foo/target/cargo-timings/cargo-timing- [..].html
39
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
40
+
41
+ "# ] ] )
44
42
. run ( ) ;
45
43
46
44
p. cargo ( "clean" ) . run ( ) ;
You can’t perform that action at this time.
0 commit comments