The test was not performing proper cleanup and so it would
fail if run more than one time on the same machine.
console.log('skipping symlink test (no privs)');
return runNextTest();
}
console.log('skipping symlink test (no privs)');
return runNextTest();
}
+ function cleanup() {
+ ['a/b',
+ 'a'
+ ].forEach(function(folder) {
+ try {fs.rmdirSync(tmp(folder))} catch (ex) {}
+ });
+ }
+ function setup() {
+ cleanup();
+ }
+ setup();
fs.mkdirSync(tmp('a'), 0755);
fs.mkdirSync(tmp('a/b'), 0755);
fs.symlinkSync('..', tmp('a/d'), 'dir');
fs.mkdirSync(tmp('a'), 0755);
fs.mkdirSync(tmp('a/b'), 0755);
fs.symlinkSync('..', tmp('a/d'), 'dir');
if (er) throw er;
assert.equal(abedabed_real, real);
cb();
if (er) throw er;
assert.equal(abedabed_real, real);
cb();