diff options
author | Masashi Hirano <cherrydog07@gmail.com> | 2018-06-13 15:49:47 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-06-21 16:28:44 +0300 |
commit | 2066cd42b63bb34b1905f9bc60a55c9d1707d6a9 (patch) | |
tree | 5c10d0fc29a19a503c449251269bd6ff9954ecaa | |
parent | 77bbdfd409593dd0a1ed97eef153ac9ed8df10f7 (diff) |
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>
-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 982f4c41804..4019cb4888d 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(); |