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 00000000000..ba7a149c488 --- /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'); + }); +});