]> git.proxmox.com Git - cargo.git/commitdiff
Fixed RUSTC_LINKER test for Windows hosts
authorHenrik Laxhuber <henrik@laxhuber.com>
Mon, 23 Apr 2018 16:28:38 +0000 (18:28 +0200)
committerHenrik Laxhuber <henrik@laxhuber.com>
Mon, 23 Apr 2018 16:28:38 +0000 (18:28 +0200)
tests/testsuite/build_script.rs

index 68abf84228957000daa112fcf82623ab4e5cb56a..bb44cd8345c837385373c5131bef40b08a58059b 100644 (file)
@@ -179,7 +179,7 @@ fn custom_build_env_vars() {
             use std::env;
 
             fn main() {
-                assert_eq!(env::var("RUSTC_LINKER").unwrap(), "/path/to/linker");
+                assert!(env::var("RUSTC_LINKER").unwrap().ends_with("/path/to/linker"));
             }
         "#)
         .file("src/lib.rs", "")