Skip to content

Commit

Permalink
compiletest: Canonicalize paths when remove incr.comp. dir, enabling …
Browse files Browse the repository at this point in the history
…longer paths
  • Loading branch information
michaelwoerister committed Aug 29, 2016
1 parent 68d2275 commit 50b008a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,10 @@ actual:\n\
// runs.
let incremental_dir = self.incremental_dir();
if incremental_dir.exists() {
fs::remove_dir_all(&incremental_dir).unwrap();
// Canonicalizing the path will convert it to the //?/ format
// on Windows, which enables paths longer than 260 character
let canonicalized = incremental_dir.canonicalize().unwrap();
fs::remove_dir_all(canonicalized).unwrap();
}
fs::create_dir_all(&incremental_dir).unwrap();

Expand Down

0 comments on commit 50b008a

Please sign in to comment.