Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
test: unlink temp file at test start
The file has a long name that's apparently impossible to remove with
`git clean` on Windows.
  • Loading branch information
bnoordhuis committed Mar 2, 2013
1 parent d1b4dcd commit 93156a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/simple/test-fs-long-path.js
Expand Up @@ -31,6 +31,13 @@ var fileNameLen = Math.max(260 - common.tmpDir.length - 1, 1);
var fileName = path.join(common.tmpDir, new Array(fileNameLen + 1).join('x'));
var fullPath = path.resolve(fileName);

try {
fs.unlinkSync(fullPath);
}
catch (e) {
// Ignore.
}

console.log({
filenameLength: fileName.length,
fullPathLength: fullPath.length
Expand Down

0 comments on commit 93156a6

Please sign in to comment.