GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add known_issues test for GH-2148 · nodejs/node@8e8768e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/known_issues
    • test-stdout-buffer-flush-on-exit.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/known_issues/test-stdout-buffer-flush-on-exit.js‎

Copy file name to clipboard
+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)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.