From 4d31206447967085570b0005c63596a94a54b218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 4 Oct 2016 14:51:16 +0200 Subject: [PATCH] test: fix child-process-uid-gid on Windows The process.getuid method does not exist on this platform. Ref: https://github.com/nodejs/node/pull/8864 PR-URL: https://github.com/nodejs/node/pull/8924 Reviewed-By: Luigi Pinca Reviewed-By: Wyatt Preul Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig --- test/parallel/test-child-process-uid-gid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-child-process-uid-gid.js b/test/parallel/test-child-process-uid-gid.js index 1ab514566cd93d..1ee7661227701e 100644 --- a/test/parallel/test-child-process-uid-gid.js +++ b/test/parallel/test-child-process-uid-gid.js @@ -3,7 +3,7 @@ const common = require('../common'); const assert = require('assert'); const spawn = require('child_process').spawn; -if (process.getuid() === 0) { +if (!common.isWindows && process.getuid() === 0) { common.skip('as this test should not be run as `root`'); return; }