Skip to content

Commit

Permalink
test: fix child-process-uid-gid on Windows
Browse files Browse the repository at this point in the history
The process.getuid method does not exist on this platform.

Ref: nodejs#8864
PR-URL: nodejs#8924
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Wyatt Preul <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
targos authored and Trott committed Oct 4, 2016
1 parent d097311 commit 1554735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-uid-gid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;

if (process.getuid() === 0) {
if (!common.isWindows && process.getuid() === 0) {
common.skip('as this test should not be run as `root`');
return;
}
Expand Down

0 comments on commit 1554735

Please sign in to comment.