mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
445 B
21 lines
445 B
10 years ago
|
'use strict';
|
||
13 years ago
|
var path = require('path');
|
||
13 years ago
|
var assert = require('assert');
|
||
13 years ago
|
var spawn = require('child_process').spawn;
|
||
|
var common = require('../common');
|
||
|
|
||
13 years ago
|
var child = spawn(process.argv[0], [
|
||
|
path.join(common.fixturesDir, 'GH-1899-output.js')
|
||
|
]);
|
||
13 years ago
|
var output = '';
|
||
|
|
||
13 years ago
|
child.stdout.on('data', function(data) {
|
||
13 years ago
|
output += data;
|
||
|
});
|
||
|
|
||
13 years ago
|
child.on('exit', function(code, signal) {
|
||
13 years ago
|
assert.equal(code, 0);
|
||
|
assert.equal(output, 'hello, world!\n');
|
||
|
});
|
||
|
|