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 a17200b commit d0f677aCopy full SHA for d0f677a
test/known_issues/test-stdout-buffer-flush-on-exit.js
@@ -0,0 +1,19 @@
1
+'use strict';
2
+// Refs: https://github.com/nodejs/node/issues/2148
3
+require('../common');
4
+const assert = require('assert');
5
+const execSync = require('child_process').execSync;
6
+
7
+const longLine = 'foo bar baz quux quuz aaa bbb ccc'.repeat(80);
8
+const expectedLength = (longLine.length * 999) + 1;
9
10
+if (process.argv[2] === 'child') {
11
+ process.on('exit', () => {
12
+ console.log(longLine.repeat(999));
13
+ });
14
+ process.exit();
15
+}
16
17
+const stdout = execSync(`${process.execPath} ${__filename} child`);
18
19
+assert.strictEqual(stdout.length, expectedLength);
0 commit comments