mirror of
https://github.com/nodejs/node.git
synced 2026-12-04 20:09:05 -05:00
test: fix test-process-kill-pid on Windows
Disabling the part of the test that relies on dispatching SIGHUP, because sending SIGHUP is not supported on Windows. Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
This commit is contained in:
1 parent
4516e6dda4
commit
2a415358ee
1 file changed
+7
@@ -55,6 +55,13 @@ assert.throws(function() { process.kill(+'not a number'); }, TypeError);
|
|||||||
assert.throws(function() { process.kill(1/0); }, TypeError);
|
assert.throws(function() { process.kill(1/0); }, TypeError);
|
||||||
assert.throws(function() { process.kill(-1/0); }, TypeError);
|
assert.throws(function() { process.kill(-1/0); }, TypeError);
|
||||||
|
|
||||||
|
/* Sending SIGHUP is not supported on Windows */
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
pass = true;
|
||||||
|
clearInterval(wait);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
process.once('SIGHUP', function() {
|
process.once('SIGHUP', function() {
|
||||||
process.once('SIGHUP', function() {
|
process.once('SIGHUP', function() {
|
||||||
pass = true;
|
pass = true;
|
||||||
|
|||||||
Reference in new issue
Block a user