Skip to content

Commit 258e41e

Browse files
author
Ash Cripps
committed
test: add SIGTRAP to test-signal-handler
1 parent 393a1fe commit 258e41e

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)