diff options
author | James M Snell <jasnell@gmail.com> | 2016-05-02 16:31:20 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-05-13 11:43:47 -0700 |
commit | 5d38d543cdd25962fadc49a997798d156a41e4c7 (patch) | |
tree | 04b538b19025ddaf9017cbce4aa35fb004e6a145 /test/parallel/test-require-symlink.js | |
parent | f52b2f116bf510e2af8750061ac6f8a0c9caa653 (diff) | |
download | android-node-v8-5d38d543cdd25962fadc49a997798d156a41e4c7.tar.gz android-node-v8-5d38d543cdd25962fadc49a997798d156a41e4c7.tar.bz2 android-node-v8-5d38d543cdd25962fadc49a997798d156a41e4c7.zip |
src,module: add --preserve-symlinks command line flag
Add the `--preserve-symlinks` flag. This makes the changes added
in #5950 conditional. By default the old behavior is used. With
the flag set, symlinks are preserved, switching to the new
behavior. This should be considered to be a temporary solution
until we figure out how to solve the symlinked peer dependency
problem in a more general way that does not break everything
else.
Additional test cases are included.
PR-URL: https://github.com/nodejs/node/pull/6537
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-require-symlink.js')
-rw-r--r-- | test/parallel/test-require-symlink.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-require-symlink.js b/test/parallel/test-require-symlink.js index 6b716ffa13..d72805436a 100644 --- a/test/parallel/test-require-symlink.js +++ b/test/parallel/test-require-symlink.js @@ -1,3 +1,4 @@ +// Flags: --preserve-symlinks 'use strict'; const common = require('../common'); const assert = require('assert'); @@ -49,7 +50,7 @@ function test() { // load symlinked-script as main var node = process.execPath; - var child = spawn(node, [linkScript]); + var child = spawn(node, ['--preserve-symlinks', linkScript]); child.on('close', function(code, signal) { assert(!code); assert(!signal); |