diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2014-10-08 20:30:01 +0200 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-10-09 09:38:17 -0700 |
commit | 61dd74bc5dfbab6b4db50ea1dd1cc7b7d2867a30 (patch) | |
tree | ca5de3de4ac7b01fee07d2b205d1478ce4e8d60c | |
parent | 47f119cabfc2eb7e524bc6584fd01328f9ce95d1 (diff) | |
download | node-new-61dd74bc5dfbab6b4db50ea1dd1cc7b7d2867a30.tar.gz |
test: fix test-child-process-spawn-typeerror
You cannot spawn 'dir' on Windows because it's not an executable. Also,
some people might have 'ls' on their path on Windows, so I changed
invalidCmd to something that's highly unlikely to exist.
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
-rw-r--r-- | test/simple/test-child-process-spawn-typeerror.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/simple/test-child-process-spawn-typeerror.js b/test/simple/test-child-process-spawn-typeerror.js index 49bc74d1a0..4fd360a3f8 100644 --- a/test/simple/test-child-process-spawn-typeerror.js +++ b/test/simple/test-child-process-spawn-typeerror.js @@ -22,8 +22,8 @@ var spawn = require('child_process').spawn, assert = require('assert'), windows = (process.platform === 'win32'), - cmd = (windows) ? 'dir' : 'ls', - invalidcmd = (windows) ? 'ls' : 'dir', + cmd = (windows) ? 'rundll32' : 'ls', + invalidcmd = 'hopefully_you_dont_have_this_on_your_machine', invalidArgsMsg = /Incorrect value of args option/, invalidOptionsMsg = /options argument must be an object/, errors = 0; |