Skip to content

Commit 9af3930

Browse files
committed
test(build-std): expand assertion to ensure no index update
1 parent fa64658 commit 9af3930

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

tests/build-std/main.rs

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,31 @@ fn basic() {
119119
120120
"#]])
121121
.run();
122-
p.cargo("run").build_std().target_host().run();
123-
p.cargo("test").build_std().target_host().run();
122+
p.cargo("run")
123+
.build_std()
124+
.target_host()
125+
.with_stderr_data(str![[r#"
126+
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
127+
[RUNNING] `target/[HOST_TARGET]/debug/foo`
128+
129+
"#]])
130+
.run();
131+
p.cargo("test")
132+
.build_std()
133+
.target_host()
134+
.with_stderr_data(str![[r#"
135+
[COMPILING] rustc-std-workspace-std [..]
136+
...
137+
[COMPILING] test v0.0.0 ([..])
138+
[COMPILING] foo v0.0.1 ([ROOT]/foo)
139+
[FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
140+
[RUNNING] unittests src/lib.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])
141+
[RUNNING] unittests src/main.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])
142+
[RUNNING] tests/smoke.rs (target/[HOST_TARGET]/debug/deps/smoke-[HASH])
143+
[DOCTEST] foo
144+
145+
"#]])
146+
.run();
124147

125148
// Check for hack that removes dylibs.
126149
let deps_dir = Path::new("target")

0 commit comments

Comments
 (0)