Skip to content

Commit

Permalink
test: assert process.setgroups is undefined on windows
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
Masashi Hirano authored and jasnell committed Jun 21, 2018
1 parent 77bbdfd commit 2066cd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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();
Expand Down

0 comments on commit 2066cd4

Please sign in to comment.