mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
test: correct test comment
This corrects a comment on the signal type used in the test. PR-URL: https://github.com/nodejs/node/pull/38095 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
d61977f03e
commit
e155b1f2f7
1 file changed
+2
-1
@@ -17,7 +17,8 @@ if (process.argv[2] === 'child') {
|
||||
const child = spawnSync(process.execPath,
|
||||
['--expose-internals', __filename, 'child'],
|
||||
{ stdio: 'inherit' });
|
||||
// FreeBSD and macOS use SIGILL for the kind of crash we're causing here.
|
||||
// FreeBSD uses SIGILL for this kind of crash.
|
||||
// macOS uses SIGILL or SIGTRAP (arm64) for this kind of crash.
|
||||
assert(child.signal === 'SIGSEGV' || child.signal === 'SIGILL' ||
|
||||
child.signal === 'SIGTRAP', `child.signal = ${child.signal}`);
|
||||
}
|
||||
Reference in new issue
Block a user