Browse Source

test: tmpdir creation failures should fail tests

tmpdir creation only happens for tests that need it. So failure to
refresh the temporary directory should result in a failed test.

PR-URL: https://github.com/nodejs/io.js/pull/1976
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
v2.3.1-release
Rich Trott 10 years ago
parent
commit
88c1831ff4
  1. 7
      test/common.js

7
test/common.js

@ -52,15 +52,8 @@ function rmdirSync(p, originalEr) {
}
exports.refreshTmpDir = function() {
try {
rimrafSync(exports.tmpDir);
} catch (e) {
}
try {
fs.mkdirSync(exports.tmpDir);
} catch (e) {
}
};
if (process.env.TEST_THREAD_ID) {

Loading…
Cancel
Save