Skip to content

Commit bf81ba0

Browse files
weihangloMabezDev
authored andcommitted
test(build-std): expand assertion to ensure no index update
1 parent 2dbb1af commit bf81ba0

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
@@ -121,8 +121,31 @@ fn basic() {
121121
122122
"#]])
123123
.run();
124-
p.cargo("run").build_std().target_host().run();
125-
p.cargo("test").build_std().target_host().run();
124+
p.cargo("run")
125+
.build_std()
126+
.target_host()
127+
.with_stderr_data(str![[r#"
128+
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
129+
[RUNNING] `target/[HOST_TARGET]/debug/foo`
130+
131+
"#]])
132+
.run();
133+
p.cargo("test")
134+
.build_std()
135+
.target_host()
136+
.with_stderr_data(str![[r#"
137+
[COMPILING] rustc-std-workspace-std [..]
138+
...
139+
[COMPILING] test v0.0.0 ([..])
140+
[COMPILING] foo v0.0.1 ([ROOT]/foo)
141+
[FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
142+
[RUNNING] unittests src/lib.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])
143+
[RUNNING] unittests src/main.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])
144+
[RUNNING] tests/smoke.rs (target/[HOST_TARGET]/debug/deps/smoke-[HASH])
145+
[DOCTEST] foo
146+
147+
"#]])
148+
.run();
126149

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

0 commit comments

Comments
 (0)