Browse Source

child_process: fix test after latest merge

child_process.spawn's argument parsing is stricter in v0.12 than in
v0.10. Changes in tests merged from v0.10 that relied on the less-strict
argument parsing would fail. This change updates the test so that it
makes sure that the stricter argument parsing fails as expected.

This change also fixes a small typo introduced during the conflicts
resolution of said merge.
v0.11.15-release
Julien Gilli 10 years ago
parent
commit
c315577994
  1. 4
      test/simple/test-child-process-spawn-typeerror.js

4
test/simple/test-child-process-spawn-typeerror.js

@ -20,7 +20,7 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var assert = require('assert'),
child_process = require('child_process');
child_process = require('child_process'),
spawn = child_process.spawn,
fork = child_process.fork,
execFile = child_process.execFile,
@ -107,7 +107,7 @@ assert.throws(function() { spawn(cmd, n, o); }, TypeError);
assert.throws(function() { spawn(cmd, a, n); }, TypeError);
assert.throws(function() { spawn(cmd, s); }, TypeError);
assert.doesNotThrow(function() { spawn(cmd, a, s); }, TypeError);
assert.throws(function() { spawn(cmd, a, s); }, TypeError);
// verify that execFile has same argument parsing behaviour as spawn

Loading…
Cancel
Save