diff options
author | Masashi Hirano <cherrydog07@gmail.com> | 2018-06-13 21:49:47 +0900 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-06-21 06:28:44 -0700 |
commit | 2066cd42b63bb34b1905f9bc60a55c9d1707d6a9 (patch) | |
tree | 5c10d0fc29a19a503c449251269bd6ff9954ecaa /test | |
parent | 77bbdfd409593dd0a1ed97eef153ac9ed8df10f7 (diff) | |
download | android-node-v8-2066cd42b63bb34b1905f9bc60a55c9d1707d6a9.tar.gz android-node-v8-2066cd42b63bb34b1905f9bc60a55c9d1707d6a9.tar.bz2 android-node-v8-2066cd42b63bb34b1905f9bc60a55c9d1707d6a9.zip |
test: assert process.setgroups is undefined on windows
PR-URL: https://github.com/nodejs/node/pull/21286
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-process-setgroups.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/parallel/test-process-setgroups.js b/test/parallel/test-process-setgroups.js index 982f4c4180..4019cb4888 100644 --- a/test/parallel/test-process-setgroups.js +++ b/test/parallel/test-process-setgroups.js @@ -1,7 +1,12 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); +if (common.isWindows || !common.isMainThread) { + assert.strictEqual(process.setgroups, undefined); + return; +} + assert.throws( () => { process.setgroups(); |