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: #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 targos committed Dec 21, 2020
1 parent 166aa8a commit d3d1f33
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 d3d1f33

Please sign in to comment.