diff --git a/test/simple/test-fs-chmod.js b/test/simple/test-fs-chmod.js index 436ab734f9..b8dfd5f989 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 {