test: refresh the tmpdir before using
Test fails if tmp dir does not exist when the test is run. Add common.refreshTmpDir() so that doesn't happen. PR-URL: https://github.com/nodejs/node/pull/7327 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
92adbe4793
commit
cdcfeb7628
@ -10,6 +10,8 @@ if (common.isFreeBSD) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
common.refreshTmpDir();
|
||||||
|
|
||||||
const fn = '新建文夹件.txt';
|
const fn = '新建文夹件.txt';
|
||||||
const a = path.join(common.tmpDir, fn);
|
const a = path.join(common.tmpDir, fn);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user