about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-08-08 17:19:36 +0200
committerJakub Beránek <berykubik@gmail.com>2025-08-13 08:11:00 +0200
commit2071a68bd6e81a8e6779ee247048d37cd865a8c9 (patch)
tree2b2bb78fbe1d88bc8f3274a59f68c953d1e7b5a0
parent5ffd5c2ec23f823a6dcb7c67d9d19b0723777fda (diff)
downloadrust-2071a68bd6e81a8e6779ee247048d37cd865a8c9.tar.gz
rust-2071a68bd6e81a8e6779ee247048d37cd865a8c9.zip
Add snapshot test for `x clippy std`
-rw-r--r--src/bootstrap/src/core/builder/tests.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/builder/tests.rs b/src/bootstrap/src/core/builder/tests.rs
index 2c1623f5385..c521b7f5d07 100644
--- a/src/bootstrap/src/core/builder/tests.rs
+++ b/src/bootstrap/src/core/builder/tests.rs
@@ -2124,6 +2124,23 @@ mod snapshot {
         [clippy] rustc 0 <host> -> rustc 1 <host>
         ");
     }
+
+    #[test]
+    fn clippy_std() {
+        let ctx = TestCtx::new();
+        insta::assert_snapshot!(
+            ctx.config("clippy")
+                .path("std")
+                .render_steps(), @r"
+        [build] llvm <host>
+        [build] rustc 0 <host> -> rustc 1 <host>
+        [build] rustc 1 <host> -> std 1 <host>
+        [build] rustc 1 <host> -> rustc 2 <host>
+        [build] rustc 1 <host> -> clippy-driver 2 <host>
+        [build] rustc 1 <host> -> cargo-clippy 2 <host>
+        [clippy] std <host>
+        ");
+    }
 }
 
 struct ExecutedSteps {