Skip to content

Commit

Permalink
test(freshness::changing_bin_features_caches_targets): Fix stderr sna…
Browse files Browse the repository at this point in the history
  • Loading branch information
choznerol committed Jun 29, 2024
1 parent 46f04e8 commit cbf4b1b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/testsuite/freshness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,12 +552,13 @@ feature on
// MSVC does not include hash in binary filename, so it gets recompiled.
if cfg!(target_env = "msvc") {
e.with_stderr_data(str![[r#"
[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])
[DIRTY] foo v0.0.1 ([ROOT]/foo): the list of features changed
[COMPILING] foo v0.0.1 ([ROOT]/foo)
[RUNNING] `rustc --crate-name [..]
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
"#]]).run();
"#]])
.run();
} else {
e.with_stderr_data(str![[r#"
[FRESH] foo v0.0.1 ([ROOT]/foo)
Expand All @@ -576,12 +577,13 @@ feature off
let mut e = p.cargo("build --features foo -v");
if cfg!(target_env = "msvc") {
e.with_stderr_data(str![[r#"
[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])
[DIRTY] foo v0.0.1 ([ROOT]/foo): the list of features changed
[COMPILING] foo v0.0.1 ([ROOT]/foo)
[RUNNING] `rustc [..]
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
"#]]).run();
"#]])
.run();
} else {
e.with_stderr_data(str![[r#"
[FRESH] foo v0.0.1 ([ROOT]/foo)
Expand Down

0 comments on commit cbf4b1b

Please sign in to comment.