Skip to content

Commit

Permalink
Fix one test that failed in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ploppz committed May 14, 2022
1 parent c587c38 commit 4d60140
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/suffix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ mod test {
let paths = suffix_scheme.scan_suffixes(relative_path);
assert_eq!(paths.len(), 2);

// Reset CWD: necessary on Windows only - otherwise we get the error:
// "The process cannot access the file because it is being used by another process."
// (code 32)
std::env::set_current_dir("/").unwrap();

// Cleanup
std::fs::remove_dir_all(&working_dir).unwrap();
}
Expand Down

0 comments on commit 4d60140

Please sign in to comment.