Skip to content

Commit

Permalink
test: fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Desmottes authored and gdesmott committed Mar 9, 2021
1 parent 868bdf0 commit de6e465
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,14 @@ fn feature_versions() {

#[test]
fn override_search_native() {
#[cfg(target_os = "windows")]
let paths_env = "/custom/path;/other/path";
#[cfg(not(target_os = "windows"))]
let paths_env = "/custom/path:/other/path";

let (libraries, flags) = toml(
"toml-good",
vec![(
"SYSTEM_DEPS_TESTLIB_SEARCH_NATIVE",
"/custom/path:/other/path",
)],
vec![("SYSTEM_DEPS_TESTLIB_SEARCH_NATIVE", paths_env)],
)
.unwrap();
let testlib = libraries.get_by_name("testlib").unwrap();
Expand Down

0 comments on commit de6e465

Please sign in to comment.