Skip to content

Commit 9c46947

Browse files
committed
Add snapshot test for x clippy std
1 parent acd245b commit 9c46947

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,23 @@ mod snapshot {
21242124
[clippy] rustc 0 <host> -> rustc 1 <host>
21252125
");
21262126
}
2127+
2128+
#[test]
2129+
fn clippy_std() {
2130+
let ctx = TestCtx::new();
2131+
insta::assert_snapshot!(
2132+
ctx.config("clippy")
2133+
.path("std")
2134+
.render_steps(), @r"
2135+
[build] llvm <host>
2136+
[build] rustc 0 <host> -> rustc 1 <host>
2137+
[build] rustc 1 <host> -> std 1 <host>
2138+
[build] rustc 1 <host> -> rustc 2 <host>
2139+
[build] rustc 1 <host> -> clippy-driver 2 <host>
2140+
[build] rustc 1 <host> -> cargo-clippy 2 <host>
2141+
[clippy] std <host>
2142+
");
2143+
}
21272144
}
21282145

21292146
struct ExecutedSteps {

0 commit comments

Comments
 (0)