mirror of https://github.com/nodejs/node.git
test: Solaris is not as granular with rename fs watch events
parent
a039bad299
commit
b48f7f7eac
|
@ -108,7 +108,8 @@ try { fs.mkdirSync(testsubdir, 0700); } catch (e) {}
|
||||||
assert.doesNotThrow(
|
assert.doesNotThrow(
|
||||||
function() {
|
function() {
|
||||||
var watcher = fs.watch(testsubdir, function(event, filename) {
|
var watcher = fs.watch(testsubdir, function(event, filename) {
|
||||||
assert.equal('rename', event);
|
var renameEv = process.platform === 'solaris' ? 'change' : 'rename';
|
||||||
|
assert.equal(renameEv, event);
|
||||||
if (expectFilePath) {
|
if (expectFilePath) {
|
||||||
assert.equal('newfile.txt', filename);
|
assert.equal('newfile.txt', filename);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue