diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2016-10-04 14:51:16 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-10-04 16:04:05 -0700 |
commit | 1554735dec4470c6a9ea318e0c3a5d7dbca584b5 (patch) | |
tree | 30d363a8d24381b113438a4ae1367e4b8243b755 /test/parallel/test-child-process-uid-gid.js | |
parent | d097311a1b4b279b992b8aa4278013834964e9ed (diff) | |
download | android-node-v8-1554735dec4470c6a9ea318e0c3a5d7dbca584b5.tar.gz android-node-v8-1554735dec4470c6a9ea318e0c3a5d7dbca584b5.tar.bz2 android-node-v8-1554735dec4470c6a9ea318e0c3a5d7dbca584b5.zip |
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 <luigipinca@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-uid-gid.js')
-rw-r--r-- | test/parallel/test-child-process-uid-gid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-uid-gid.js b/test/parallel/test-child-process-uid-gid.js index 1ab514566c..1ee7661227 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; } |