Skip to content

Commit

Permalink
test: add SIGTRAP to test-signal-handler
Browse files Browse the repository at this point in the history
PR-URL: nodejs#36368
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
  • Loading branch information
Ash Cripps authored and a60814billy committed Apr 2, 2021
1 parent bb7e82e commit c2d8aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/abort/test-signal-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ if (process.argv[2] === 'child') {
['--expose-internals', __filename, 'child'],
{ stdio: 'inherit' });
// FreeBSD and macOS use SIGILL for the kind of crash we're causing here.
assert(child.signal === 'SIGSEGV' || child.signal === 'SIGILL',
`child.signal = ${child.signal}`);
assert(child.signal === 'SIGSEGV' || child.signal === 'SIGILL' ||
child.signal === 'SIGTRAP', `child.signal = ${child.signal}`);
}

0 comments on commit c2d8aef

Please sign in to comment.