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 targos committed Jun 22, 2018
1 parent d7ff752 commit e038b2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/parallel/test-process-setgroups.js
Original file line number Diff line number Diff line change
@@ -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 e038b2f

Please sign in to comment.