Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix child-process-uid-gid on Windows
The process.getuid method does not exist on this platform.

Ref: #8864
  • Loading branch information
targos committed Oct 4, 2016
commit ec7121c4afdec7a2b3971df36b652835477e61cc
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