We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2882520 commit 895392eCopy full SHA for 895392e
test/fixtures/log-broken.js
@@ -0,0 +1,25 @@
1
+var exit = require('../../lib/exit');
2
+
3
+var errorCode = process.argv[2];
4
+var max = process.argv[3];
5
+var modes = process.argv.slice(4);
6
7
+function stdout(message) {
8
+ if (modes.indexOf('stdout') === -1) { return; }
9
+ process.stdout.write('[stdout] ' + message + '\n');
10
+}
11
12
+function stderr(message) {
13
+ if (modes.indexOf('stderr') === -1) { return; }
14
+ process.stderr.write('[stderr] ' + message + '\n');
15
16
17
+for (var i = 0; i < max; i++) {
18
+ stdout('testing ' + i);
19
+ stderr('testing ' + i);
20
21
22
+process.exit(errorCode);
23
24
+stdout('this should not display');
25
+stderr('this should not display');
0 commit comments