Skip to content

Commit cbf4b1b

Browse files
committed
1 parent 46f04e8 commit cbf4b1b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/testsuite/freshness.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,13 @@ feature on
552552
// MSVC does not include hash in binary filename, so it gets recompiled.
553553
if cfg!(target_env = "msvc") {
554554
e.with_stderr_data(str![[r#"
555-
[DIRTY] foo v0.0.1 ([ROOT]/foo): the dependency foo was rebuilt ([DIRTY_REASON_NEW_TIME], [DIRTY_REASON_DIFF] after last build at [DIRTY_REASON_OLD_TIME])
555+
[DIRTY] foo v0.0.1 ([ROOT]/foo): the list of features changed
556556
[COMPILING] foo v0.0.1 ([ROOT]/foo)
557557
[RUNNING] `rustc --crate-name [..]
558558
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
559559
560-
"#]]).run();
560+
"#]])
561+
.run();
561562
} else {
562563
e.with_stderr_data(str![[r#"
563564
[FRESH] foo v0.0.1 ([ROOT]/foo)
@@ -576,12 +577,13 @@ feature off
576577
let mut e = p.cargo("build --features foo -v");
577578
if cfg!(target_env = "msvc") {
578579
e.with_stderr_data(str![[r#"
579-
[DIRTY] foo v0.0.1 ([ROOT]/foo): the dependency foo was rebuilt ([DIRTY_REASON_NEW_TIME], [DIRTY_REASON_DIFF] after last build at [DIRTY_REASON_OLD_TIME])
580+
[DIRTY] foo v0.0.1 ([ROOT]/foo): the list of features changed
580581
[COMPILING] foo v0.0.1 ([ROOT]/foo)
581582
[RUNNING] `rustc [..]
582583
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
583584
584-
"#]]).run();
585+
"#]])
586+
.run();
585587
} else {
586588
e.with_stderr_data(str![[r#"
587589
[FRESH] foo v0.0.1 ([ROOT]/foo)

0 commit comments

Comments
 (0)