Forgot to add child_process_should_emit_error.js
authorRyan Dahl <ry@tinyclouds.org>
Sun, 9 May 2010 06:24:24 +0000 (23:24 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Sun, 9 May 2010 06:24:24 +0000 (23:24 -0700)
test/fixtures/child_process_should_emit_error.js [new file with mode: 0644]

diff --git a/test/fixtures/child_process_should_emit_error.js b/test/fixtures/child_process_should_emit_error.js
new file mode 100644 (file)
index 0000000..ba7a149
--- /dev/null
@@ -0,0 +1,9 @@
+var exec = require('child_process').exec, 
+    puts = require('sys').puts;
+
+[0, 1].forEach(function(i) {
+ exec('ls', function(err, stdout, stderr) {
+   puts(i);
+   throw new Error('hello world');
+ });
+});