]> git.lizzy.rs Git - rust.git/commitdiff
Don't run dogfood on windows or in the rustc test suite
authorOliver Schneider <git1984941651981@oli-obk.de>
Tue, 16 Jan 2018 14:26:32 +0000 (15:26 +0100)
committerOliver Schneider <git1984941651981@oli-obk.de>
Fri, 19 Jan 2018 12:14:43 +0000 (13:14 +0100)
tests/dogfood.rs

index 8ca9b5c92a4c3f485ae6dfebdcb3656f8591e82a..590027f849186e103ba8aa123cffe7478fc265c4 100644 (file)
@@ -3,6 +3,9 @@ fn dogfood() {
     if option_env!("RUSTC_TEST_SUITE").is_some() {
         return;
     }
+    if cfg!(windows) {
+        return;
+    }
     let root_dir = std::env::current_dir().unwrap();
     for d in &[".", "clippy_lints"] {
         std::env::set_current_dir(root_dir.join(d)).unwrap();