Skip to content

Commit

Permalink
whichNodeArgs test fails too
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Feb 1, 2011
1 parent 63df2f3 commit 343b8af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/_.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ exports.whichNodeEmpty = function () {
});
};

exports.whichNodeArgs = function () {
var which = spawn('which', ['node']);

which.stdout.on('data', function (buf) {
testCmd(buf.toString().trim() + ' bin.js', [ 'q', 'r' ]);
});

which.stderr.on('data', function (err) {
assert.fail(err.toString());
});
};

function testCmd (cmd, args) {
var to = setTimeout(function () {
assert.fail('Never got stdout data.')
Expand Down

0 comments on commit 343b8af

Please sign in to comment.