Skip to content

Commit e038b2f

Browse files
Masashi Hiranotargos
Masashi Hirano
authored andcommitted
test: assert process.setgroups is undefined on windows
PR-URL: #21286 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d7ff752 commit e038b2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/parallel/test-process-setgroups.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33
const assert = require('assert');
44

5+
if (common.isWindows || !common.isMainThread) {
6+
assert.strictEqual(process.setgroups, undefined);
7+
return;
8+
}
9+
510
assert.throws(
611
() => {
712
process.setgroups();

0 commit comments

Comments
 (0)