Skip to content

Commit

Permalink
filenamegen: maybe fixup tests on travis/windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Apr 14, 2020
1 parent 9939af8 commit 07b72ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions filenamegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ mod test {
vec![PathBuf::from("Program Files (x86)/Foo Bar")]
);

let glob = Glob::new(root.path().join("Program Files (x86)/*").to_str().unwrap())?;
let glob = Glob::new(
normalize_slashes(root.path().join("Program Files (x86)/*"))
.to_str()
.unwrap(),
)?;
assert_eq!(
glob.walk(&root),
vec![PathBuf::from("Program Files (x86)/Foo Bar")]
Expand All @@ -281,8 +285,7 @@ mod test {
);

let glob = Glob::new(
root.path()
.join("Program Files (x86)/*/baz.exe")
normalize_slashes(root.path().join("Program Files (x86)/*/baz.exe"))
.to_str()
.unwrap(),
)?;
Expand Down

0 comments on commit 07b72ea

Please sign in to comment.