Skip to content

Commit d3d1f33

Browse files
Ash Crippstargos
Ash Cripps
authored andcommitted
test: add SIGTRAP to test-signal-handler
PR-URL: #36368 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
1 parent 166aa8a commit d3d1f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/abort/test-signal-handler.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ if (process.argv[2] === 'child') {
1818
['--expose-internals', __filename, 'child'],
1919
{ stdio: 'inherit' });
2020
// FreeBSD and macOS use SIGILL for the kind of crash we're causing here.
21-
assert(child.signal === 'SIGSEGV' || child.signal === 'SIGILL',
22-
`child.signal = ${child.signal}`);
21+
assert(child.signal === 'SIGSEGV' || child.signal === 'SIGILL' ||
22+
child.signal === 'SIGTRAP', `child.signal = ${child.signal}`);
2323
}

0 commit comments

Comments
 (0)