diff options
author | Kyle Farnung <kfarnung@microsoft.com> | 2018-02-27 14:24:21 -0800 |
---|---|---|
committer | Kyle Farnung <kfarnung@microsoft.com> | 2018-03-01 15:47:29 -0800 |
commit | 148f402320a137e921907f24378a80745ef115de (patch) | |
tree | 682863283b4dc80d5fb1d07018c6e55b33931345 /test/parallel/test-module-symlinked-peer-modules.js | |
parent | 740c426b21dde1befa1dbae9bb01174a9e25b525 (diff) | |
download | android-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.js | 2 |
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'); |