Skip to content

Commit 8e8768e

Browse files
Trottevanlucas
authored andcommitted
test: add known_issues test for GH-2148
PR-URL: #5920 Refs: #2148 Reviewed-By: Brian White <[email protected]>
1 parent bf94b5a commit 8e8768e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'use strict';
2+
// Refs: https://github.com/nodejs/node/issues/2148
3+
4+
require('../common');
5+
const assert = require('assert');
6+
const execSync = require('child_process').execSync;
7+
8+
const longLine = 'foo bar baz quux quuz aaa bbb ccc'.repeat(65536);
9+
10+
if (process.argv[2] === 'child') {
11+
process.on('exit', () => {
12+
console.log(longLine);
13+
});
14+
process.exit();
15+
}
16+
17+
const cmd = `${process.execPath} ${__filename} child`;
18+
const stdout = execSync(cmd).toString().trim();
19+
20+
assert.strictEqual(stdout, longLine);

0 commit comments

Comments
 (0)