Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe0233b

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
test: add known_issues test for GH-2148
PR-URL: #5920 Refs: #2148 Reviewed-By: Brian White <mscdex@mscdex.net>
1 parent 9a8f922 commit fe0233b
Copy full SHA for fe0233b

File tree

Expand file treeCollapse file tree

1 file changed

+20
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+20
-0
lines changed
Open diff view settings
Collapse file
+20Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.