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 tracing crash regression test · nodejs/node@c2372ea

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-tracing-no-crash.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-tracing-no-crash.js‎

Copy file name to clipboard
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const { spawn } = require('child_process');
5+
6+
function CheckNoSignalAndErrorCodeOne(code, signal) {
7+
assert.strictEqual(null, signal);
8+
assert.strictEqual(1, code);
9+
}
10+
11+
const child = spawn(process.execPath,
12+
['--trace-event-categories', 'madeup', '-e',
13+
'throw new Error()'], { stdio: 'inherit' });
14+
child.on('exit', common.mustCall(CheckNoSignalAndErrorCodeOne));

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.