From 2a415358ee8585e9480c425678234fa8d05fc620 Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Thu, 7 Aug 2014 16:45:53 +0200 Subject: [PATCH] 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 --- test/simple/test-process-kill-pid.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/simple/test-process-kill-pid.js b/test/simple/test-process-kill-pid.js index e562956..e45adf1 100644 --- a/test/simple/test-process-kill-pid.js +++ b/test/simple/test-process-kill-pid.js @@ -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); +/* Sending SIGHUP is not supported on Windows */ +if (process.platform === 'win32') { + pass = true; + clearInterval(wait); + return; +} + process.once('SIGHUP', function() { process.once('SIGHUP', function() { pass = true; -- 2.7.4