mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 15:35:41 +00:00

Rename the tests appropriately alongside mentioning the subsystem. Also, make a few basic changes to make sure the tests conform to the standard test structure. - Rename test-regress-GH-io-1068 to test-tty-stdin-end - Rename test-regress-GH-io-1811 to test-zlib-kmaxlength-rangeerror - Rename test-regress-GH-node-9326 to test-kill-segfault-freebsd - Rename test-timers-regress-GH-9765 to test-timers-setimmediate-infinite-loop - Rename test-tls-pfx-gh-5100-regr to test-tls-pfx-authorizationerror - Rename test-tls-regr-gh-5108 to test-tls-tlswrap-segfault PR-URL: https://github.com/nodejs/node/pull/19332 Fixes: https://github.com/nodejs/node/issues/19105 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
20 lines
527 B
JavaScript
20 lines
527 B
JavaScript
'use strict';
|
|
require('../common');
|
|
|
|
// This test ensures Node.js doesn't crash on hitting Ctrl+C in order to
|
|
// terminate the currently running process (especially on FreeBSD).
|
|
// https://github.com/nodejs/node-v0.x-archive/issues/9326
|
|
|
|
const assert = require('assert');
|
|
const child_process = require('child_process');
|
|
|
|
// NOTE: Was crashing on FreeBSD
|
|
const cp = child_process.spawn(process.execPath, [
|
|
'-e',
|
|
'process.kill(process.pid, "SIGINT")'
|
|
]);
|
|
|
|
cp.on('exit', function(code) {
|
|
assert.notStrictEqual(code, 0);
|
|
});
|