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: #8864
PR-URL: #8924
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
targos authored and jasnell committed Oct 6, 2016
1 parent ce1d662 commit 4d31206
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 4d31206

Please sign in to comment.