Remove test-child-process-channel.js

This commit is contained in:
Ryan Dahl
2011-10-10 14:27:52 -07:00
parent 982b19dbd7
commit ca4a0fce65
2 changed files with 0 additions and 34 deletions

View File

@@ -1,9 +0,0 @@
var assert = require('assert');
console.log('NODE_CHANNEL_FD', process.env.NODE_CHANNEL_FD);
assert.ok(process.env.NODE_CHANNEL_FD);
var fd = parseInt(process.env.NODE_CHANNEL_FD);
assert.ok(fd >= 0);
process.exit(0);

View File

@@ -1,25 +0,0 @@
var assert = require('assert');
var spawn = require('child_process').spawn;
var common = require('../common');
var sub = common.fixturesDir + '/child-process-channel.js';
var child = spawn(process.execPath, [sub], {
customFds: [0, 1, 2],
wantChannel: true
});
console.log('fds', child.fds);
assert.ok(child.fds.length == 4);
assert.ok(child.fds[3] >= 0);
var childExitCode = -1;
child.on('exit', function(code) {
childExitCode = code;
});
process.on('exit', function() {
assert.ok(childExitCode == 0);
});