]> git.proxmox.com Git - cargo.git/commitdiff
Fix post-execution path checks to be compatible with Windows
authorbl2e <53062696+bl2e@users.noreply.github.com>
Sun, 21 Jun 2020 06:37:56 +0000 (23:37 -0700)
committerbl2e <53062696+bl2e@users.noreply.github.com>
Sun, 21 Jun 2020 06:37:56 +0000 (23:37 -0700)
tests/testsuite/install.rs

index f7d93fb56357acbabd033ef7818e5d5703837110..9c5a1e7265158097f89e07baa3e5b476894759c7 100644 (file)
@@ -330,7 +330,10 @@ fn install_target_dir() {
     path.push("td_test");
     assert!(path.exists());
 
+    #[cfg(not(windows))]
     path.push("release/foo");
+    #[cfg(windows)]
+    path.push("release/foo.exe");
     assert!(path.exists());
 }