]> git.proxmox.com Git - cargo.git/commitdiff
Re-enable version_works_without_rustc on windows.
authorEric Huss <eric@huss.org>
Tue, 2 Aug 2022 19:54:16 +0000 (12:54 -0700)
committerEric Huss <eric@huss.org>
Tue, 2 Aug 2022 19:54:16 +0000 (12:54 -0700)
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

index a5e4676dd46ed2e08f4a8f0262f90ba35bc87c03..f880c75a6a4fd6a8e47404cd8e3ff8be362e21ca 100644 (file)
@@ -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();