test: fix test-process-kill-pid on Windows
authorAlexis Campailla <alexis@janeasystems.com>
Thu, 7 Aug 2014 14:45:53 +0000 (16:45 +0200)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 8 Aug 2014 00:22:53 +0000 (17:22 -0700)
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>
test/simple/test-process-kill-pid.js

index e562956..e45adf1 100644 (file)
@@ -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;