mv test-child-process-spawn-node.js test/simple/test-child-process-fork.js
authorRyan Dahl <ry@tinyclouds.org>
Fri, 7 Oct 2011 05:56:29 +0000 (22:56 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 7 Oct 2011 05:56:29 +0000 (22:56 -0700)
test/simple/test-child-process-fork.js [new file with mode: 0644]
test/simple/test-child-process-spawn-node.js [deleted file]

diff --git a/test/simple/test-child-process-fork.js b/test/simple/test-child-process-fork.js
new file mode 100644 (file)
index 0000000..1079d95
--- /dev/null
@@ -0,0 +1,24 @@
+var assert = require('assert');
+var common = require('../common');
+var fork = require('child_process').fork;
+
+var n = fork(common.fixturesDir + '/child-process-spawn-node.js');
+
+var messageCount = 0;
+
+n.on('message', function(m) {
+  console.log('PARENT got message:', m);
+  assert.ok(m.foo);
+  messageCount++;
+});
+
+n.send({ hello: 'world' });
+
+var childExitCode = -1;
+n.on('exit', function(c) {
+  childExitCode = c;
+});
+
+process.on('exit', function() {
+  assert.ok(childExitCode == 0);
+});
diff --git a/test/simple/test-child-process-spawn-node.js b/test/simple/test-child-process-spawn-node.js
deleted file mode 100644 (file)
index 1079d95..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-var assert = require('assert');
-var common = require('../common');
-var fork = require('child_process').fork;
-
-var n = fork(common.fixturesDir + '/child-process-spawn-node.js');
-
-var messageCount = 0;
-
-n.on('message', function(m) {
-  console.log('PARENT got message:', m);
-  assert.ok(m.foo);
-  messageCount++;
-});
-
-n.send({ hello: 'world' });
-
-var childExitCode = -1;
-n.on('exit', function(c) {
-  childExitCode = c;
-});
-
-process.on('exit', function() {
-  assert.ok(childExitCode == 0);
-});