From d7762dffe34bcfb3f513087444fd07abbc7664c2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 8 May 2010 23:24:24 -0700 Subject: [PATCH] Forgot to add child_process_should_emit_error.js --- test/fixtures/child_process_should_emit_error.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/fixtures/child_process_should_emit_error.js diff --git a/test/fixtures/child_process_should_emit_error.js b/test/fixtures/child_process_should_emit_error.js new file mode 100644 index 0000000000..ba7a149c48 --- /dev/null +++ b/test/fixtures/child_process_should_emit_error.js @@ -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'); + }); +});