|
1 | 1 | //! Tests for dep-info files. This includes the dep-info file Cargo creates in
|
2 | 2 | //! the output directory, and the ones stored in the fingerprint.
|
3 | 3 |
|
4 |
| -#![allow(deprecated)] |
5 |
| - |
6 | 4 | use cargo_test_support::compare::assert_e2e;
|
7 | 5 | use cargo_test_support::paths::{self, CargoPathExt};
|
8 | 6 | use cargo_test_support::registry::Package;
|
@@ -323,7 +321,11 @@ fn relative_depinfo_paths_ws() {
|
323 | 321 | p.cargo("build -Z binary-dep-depinfo --target")
|
324 | 322 | .arg(&host)
|
325 | 323 | .masquerade_as_nightly_cargo(&["binary-dep-depinfo"])
|
326 |
| - .with_stderr_contains("[COMPILING] foo [..]") |
| 324 | + .with_stderr_data(str![[r#" |
| 325 | +... |
| 326 | +[COMPILING] foo v0.1.0 ([ROOT]/foo/foo) |
| 327 | +... |
| 328 | +"#]]) |
327 | 329 | .run();
|
328 | 330 |
|
329 | 331 | assert_deps_contains(
|
@@ -360,7 +362,10 @@ fn relative_depinfo_paths_ws() {
|
360 | 362 | p.cargo("build -Z binary-dep-depinfo --target")
|
361 | 363 | .arg(&host)
|
362 | 364 | .masquerade_as_nightly_cargo(&["binary-dep-depinfo"])
|
363 |
| - .with_stderr("[FINISHED] `dev` profile [..]") |
| 365 | + .with_stderr_data(str![[r#" |
| 366 | +[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s |
| 367 | +
|
| 368 | +"#]]) |
364 | 369 | .run();
|
365 | 370 | }
|
366 | 371 |
|
@@ -446,7 +451,11 @@ fn relative_depinfo_paths_no_ws() {
|
446 | 451 |
|
447 | 452 | p.cargo("build -Z binary-dep-depinfo")
|
448 | 453 | .masquerade_as_nightly_cargo(&["binary-dep-depinfo"])
|
449 |
| - .with_stderr_contains("[COMPILING] foo [..]") |
| 454 | + .with_stderr_data(str![[r#" |
| 455 | +... |
| 456 | +[COMPILING] foo v0.1.0 ([ROOT]/foo) |
| 457 | +... |
| 458 | +"#]]) |
450 | 459 | .run();
|
451 | 460 |
|
452 | 461 | assert_deps_contains(
|
@@ -482,7 +491,10 @@ fn relative_depinfo_paths_no_ws() {
|
482 | 491 | // Make sure it stays fresh.
|
483 | 492 | p.cargo("build -Z binary-dep-depinfo")
|
484 | 493 | .masquerade_as_nightly_cargo(&["binary-dep-depinfo"])
|
485 |
| - .with_stderr("[FINISHED] `dev` profile [..]") |
| 494 | + .with_stderr_data(str![[r#" |
| 495 | +[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s |
| 496 | +
|
| 497 | +"#]]) |
486 | 498 | .run();
|
487 | 499 | }
|
488 | 500 |
|
|
0 commit comments