Skip to content

Commit fe0233b

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
test: add known_issues test for GH-2148
PR-URL: #5920 Refs: #2148 Reviewed-By: Brian White <[email protected]>
1 parent 9a8f922 commit fe0233b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
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)