Skip to content

Commit 04e10d7

Browse files
committed
Add snapshot test for x clippy std
1 parent 0554e9e commit 04e10d7

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
@@ -1894,6 +1894,23 @@ mod snapshot {
18941894
[clippy] rustc 0 <host> -> rustc 1 <host>
18951895
");
18961896
}
1897+
1898+
#[test]
1899+
fn clippy_std() {
1900+
let ctx = TestCtx::new();
1901+
insta::assert_snapshot!(
1902+
ctx.config("clippy")
1903+
.path("std")
1904+
.render_steps(), @r"
1905+
[build] llvm <host>
1906+
[build] rustc 0 <host> -> rustc 1 <host>
1907+
[build] rustc 1 <host> -> std 1 <host>
1908+
[build] rustc 1 <host> -> rustc 2 <host>
1909+
[build] rustc 1 <host> -> clippy-driver 2 <host>
1910+
[build] rustc 1 <host> -> cargo-clippy 2 <host>
1911+
[clippy] std <host>
1912+
");
1913+
}
18971914
}
18981915

18991916
struct ExecutedSteps {

0 commit comments

Comments
 (0)