Browse Source

test: better fs.lchmod() availability check

fs.lchmod() is a BSD-ism, not a "not Windows"-ism.
v0.7.4-release
Ben Noordhuis 13 years ago
parent
commit
55a8a3aad4
  1. 2
      test/simple/test-fs-chmod.js

2
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 {

Loading…
Cancel
Save