Skip to content

Commit 4d60140

Browse files
committed
Fix one test that failed in Windows
1 parent c587c38 commit 4d60140

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/suffix.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ mod test {
363363
let paths = suffix_scheme.scan_suffixes(relative_path);
364364
assert_eq!(paths.len(), 2);
365365

366+
// Reset CWD: necessary on Windows only - otherwise we get the error:
367+
// "The process cannot access the file because it is being used by another process."
368+
// (code 32)
369+
std::env::set_current_dir("/").unwrap();
370+
366371
// Cleanup
367372
std::fs::remove_dir_all(&working_dir).unwrap();
368373
}

0 commit comments

Comments
 (0)