Skip to content

Commit c2372ea

Browse files
Eugene Ostroukhovtargos
authored andcommitted
test: add tracing crash regression test
PR-URL: #21867 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
1 parent 00c33a5 commit c2372ea

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
constcommon=require('../common');
3+
constassert=require('assert');
4+
const{ spawn }=require('child_process');
5+
6+
functionCheckNoSignalAndErrorCodeOne(code,signal){
7+
assert.strictEqual(null,signal);
8+
assert.strictEqual(1,code);
9+
}
10+
11+
constchild=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)