Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: fix simple/test-eval
Browse files Browse the repository at this point in the history
Test expects output of console.error(process.argv) to be spread out
over several lines but if /path/to/node is short, it stays on a single line.
  • Loading branch information
bnoordhuis committed Aug 24, 2011
1 parent 52a40e0 commit accc34c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/simple/test-eval.js
Expand Up @@ -23,14 +23,15 @@


require('../common');
var util = require('util');
var assert = require('assert');
var exec = require('child_process').exec;

var success_count = 0;
var error_count = 0;

var cmd = [process.execPath, '-e', '"console.error(process.argv)"', 'foo', 'bar'].join(' ');
var expected = "[ '" + process.execPath + "',\n 'foo',\n 'bar' ]\n";
var expected = util.format([process.execPath, 'foo', 'bar']) + "\n";
var child = exec(cmd, function(err, stdout, stderr) {
if (err) {
console.log(err.toString());
Expand Down

0 comments on commit accc34c

Please sign in to comment.