Skip to content

Commit d0f677a

Browse files
committed
test: add known_issues test for GH-2148
Refs: #2148
1 parent a17200b commit d0f677a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)