diff --git a/benchmark/fs/bench-linkSync.js b/benchmark/fs/bench-linkSync.js index 9fcf910cdaf301..a5dafd5a7c4f10 100644 --- a/benchmark/fs/bench-linkSync.js +++ b/benchmark/fs/bench-linkSync.js @@ -5,6 +5,12 @@ const fs = require('fs'); const tmpdir = require('../../test/common/tmpdir'); tmpdir.refresh(); +// Calling `chmodSync` causes Windows build to fail. +// Reference: https://github.com/libuv/libuv/issues/3267 +if (process.platform !== 'win32') { + return; +} + const tmpfile = tmpdir.resolve('.bench-file-data'); fs.writeFileSync(tmpfile, 'bench-file', 'utf-8'); fs.chmodSync(tmpfile, fs.constants.S_IRUSR);