Skip to content

Commit

Permalink
test: add SIGTRAP to test-signal-handler
Browse files Browse the repository at this point in the history
Backport-PR-URL: #38051
Co-authored-by: BoHong Li <[email protected]>

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 Apr 11, 2021
1 parent 7d247f1 commit db04ae6
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 db04ae6

Please sign in to comment.