[Pkg-javascript-commits] [node-foreground-child] 27/69: Skip signals in tests on Windows

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 11:43:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-foreground-child.

commit c2c1f2a0e02d0f4dd64671f32bfd84a5e1ad9ea2
Author: isaacs <i at izs.me>
Date:   Fri Jan 1 20:39:16 2016 -0800

    Skip signals in tests on Windows
---
 test/basic.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/test/basic.js b/test/basic.js
index 51ac091..150c3e7 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -58,7 +58,8 @@ if (process.argv[2] === 'parent') {
 }
 
 var t = require('tap')
-t.test('signals', function (t) {
+
+t.test('signals', { skip: winSignals() }, function (t) {
   var signals = [
     'SIGTERM',
     'SIGHUP',
@@ -102,7 +103,7 @@ t.test('exit codes', function (t) {
   t.end()
 })
 
-t.test('parent emits exit when SIGTERMed', { skip: isZero10OnTravis() }, function (t) {
+t.test('parent emits exit when SIGTERMed', { skip: isZero10OnTravis() || winSignals() }, function (t) {
   var which = ['parent', 'child', 'nobody']
   which.forEach(function (who) {
     t.test('SIGTERM ' + who, function (t) {
@@ -148,3 +149,8 @@ function isZero10OnTravis () {
   return process.env.TRAVIS && /^v0\.10\.[0-9]+$/.test(process.version) ?
     'skip on 0.10 on Travis' : false
 }
+
+function winSignals () {
+  return process.platform === 'win32' ?
+    'windows does not support unix signals' : false
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-foreground-child.git



More information about the Pkg-javascript-commits mailing list