From c0be32b5de72d307cc23463b532300e183e5fa18 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 2 Aug 2022 12:54:16 -0700 Subject: [PATCH] Re-enable version_works_without_rustc on windows. This test was ignored in https://github.com/rust-lang/cargo/pull/3189 without much discussion of explaining why. AFAICT, this test works fine on Windows on both MSVC and GNU. Empty paths do the expected behavior (preventing cargo from running rustc). There are some special rules on Windows about discovering the process to run (such as searching the app's launch directory), but I do not think that is relevant here. Confirmed by trying to run `cargo check` in this test fails to find `rustc`. --- tests/testsuite/version.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/testsuite/version.rs b/tests/testsuite/version.rs index a5e4676dd..f880c75a6 100644 --- a/tests/testsuite/version.rs +++ b/tests/testsuite/version.rs @@ -16,7 +16,6 @@ fn simple() { } #[cargo_test] -#[cfg_attr(target_os = "windows", ignore)] fn version_works_without_rustc() { let p = project().build(); p.cargo("version").env("PATH", "").run(); -- 2.39.2