From 55a8a3aad47592e10f3689f579eec1d320ae47aa Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 25 Nov 2011 00:55:10 +0100 Subject: [PATCH] test: better fs.lchmod() availability check fs.lchmod() is a BSD-ism, not a "not Windows"-ism. --- test/simple/test-fs-chmod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-fs-chmod.js b/test/simple/test-fs-chmod.js index 436ab734f9a..b8dfd5f989c 100644 --- a/test/simple/test-fs-chmod.js +++ b/test/simple/test-fs-chmod.js @@ -127,7 +127,7 @@ fs.open(file, 'a', function(err, fd) { }); // lchmod -if (!is_windows) { +if (fs.lchmod) { var link = path.join(common.tmpDir, 'symbolic-link'); try {