summaryrefslogtreecommitdiff
path: root/test/parallel/test-module-symlinked-peer-modules.js
diff options
context:
space:
mode:
authorKyle Farnung <kfarnung@microsoft.com>2018-02-27 14:24:21 -0800
committerKyle Farnung <kfarnung@microsoft.com>2018-03-01 15:47:29 -0800
commit148f402320a137e921907f24378a80745ef115de (patch)
tree682863283b4dc80d5fb1d07018c6e55b33931345 /test/parallel/test-module-symlinked-peer-modules.js
parent740c426b21dde1befa1dbae9bb01174a9e25b525 (diff)
downloadandroid-node-v8-148f402320a137e921907f24378a80745ef115de.tar.gz
android-node-v8-148f402320a137e921907f24378a80745ef115de.tar.bz2
android-node-v8-148f402320a137e921907f24378a80745ef115de.zip
test: specify 'dir' for directory symlinks
Directory symlinks in Windows require the 'dir' flag to be passed to create the symlink correctly. PR-URL: https://github.com/nodejs/node/pull/19049 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-module-symlinked-peer-modules.js')
-rw-r--r--test/parallel/test-module-symlinked-peer-modules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-module-symlinked-peer-modules.js b/test/parallel/test-module-symlinked-peer-modules.js
index 003bf1a49b..fb02a8a94d 100644
--- a/test/parallel/test-module-symlinked-peer-modules.js
+++ b/test/parallel/test-module-symlinked-peer-modules.js
@@ -42,7 +42,7 @@ fs.mkdirSync(moduleB);
// Attempt to make the symlink. If this fails due to lack of sufficient
// permissions, the test will bail out and be skipped.
try {
- fs.symlinkSync(moduleA, moduleA_link);
+ fs.symlinkSync(moduleA, moduleA_link, 'dir');
} catch (err) {
if (err.code !== 'EPERM') throw err;
common.skip('insufficient privileges for symlinks');