Skip to content

Commit f0c243f

Browse files
authored
test(build-std): adjust snapshot (#16539)
### What does this PR try to resolve? rust-lang/rust#149514 added a build.rs to libtest, which affected how Cargo print status message (build.rs was scheduled first because it has one dependent) ### How to test and review this PR? See <https://github.com/rust-lang/cargo/actions/runs/21232930264/job/61094884597?pr=16506> ``` thread 'basic' (9963) panicked at tests/build-std/main.rs:179:10: ---- expected: tests/build-std/main.rs:167:27 ++++ actual: stderr 1 1 | [COMPILING] [..] 2 - ... 3 - [COMPILING] test v0.0.0 ([..]) 2 + [COMPILING] rustc-std-workspace-std v1.99.0 (/home/runner/.rustup/toolchains/nightly-[HOST_TARGET]/lib/rustlib/src/rust/library/rustc-std-workspace-std) 3 + [COMPILING] getopts v0.2.24 4 4 | [COMPILING] foo v0.0.1 ([ROOT]/foo) 5 5 | [FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s 6 6 | [RUNNING] unittests src/lib.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH]) 7 7 | [RUNNING] unittests src/main.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH]) 8 8 | [RUNNING] tests/smoke.rs (target/[HOST_TARGET]/debug/deps/smoke-[HASH]) 9 9 | [DOCTEST] foo ```
2 parents 06d6700 + 5c9f786 commit f0c243f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/build-std/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ fn basic() {
165165
.build_std_isolated()
166166
.target_host()
167167
.with_stderr_data(str![[r#"
168-
[COMPILING] [..]
169-
...
170168
[COMPILING] test v0.0.0 ([..])
169+
...
171170
[COMPILING] foo v0.0.1 ([ROOT]/foo)
172171
[FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
173172
[RUNNING] unittests src/lib.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])

0 commit comments

Comments
 (0)