From db04ae6b0255b751346cfbc2fe3f63fb38b1e1fe Mon Sep 17 00:00:00 2001 From: Ash Cripps Date: Thu, 3 Dec 2020 16:22:20 +0000 Subject: [PATCH] test: add SIGTRAP to test-signal-handler Backport-PR-URL: https://github.com/nodejs/node/pull/38051 Co-authored-by: BoHong Li PR-URL: https://github.com/nodejs/node/pull/36368 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Evan Lucas --- test/abort/test-signal-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/abort/test-signal-handler.js b/test/abort/test-signal-handler.js index f68e6881f6e5b6..69ac95f5261fb7 100644 --- a/test/abort/test-signal-handler.js +++ b/test/abort/test-signal-handler.js @@ -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}`); }