From ca4a0fce658da9fc0a0fea95eb3d651f66d62bb6 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 10 Oct 2011 14:27:52 -0700 Subject: [PATCH] Remove test-child-process-channel.js --- test/fixtures/child-process-channel.js | 9 -------- test/simple/test-child-process-channel.js | 25 ----------------------- 2 files changed, 34 deletions(-) delete mode 100644 test/fixtures/child-process-channel.js delete mode 100644 test/simple/test-child-process-channel.js diff --git a/test/fixtures/child-process-channel.js b/test/fixtures/child-process-channel.js deleted file mode 100644 index a7af584b9d..0000000000 --- a/test/fixtures/child-process-channel.js +++ /dev/null @@ -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); diff --git a/test/simple/test-child-process-channel.js b/test/simple/test-child-process-channel.js deleted file mode 100644 index d7230a2692..0000000000 --- a/test/simple/test-child-process-channel.js +++ /dev/null @@ -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); -});