Skip to content

Commit

Permalink
process.getgid is not available on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jan 2, 2014
1 parent 8036e07 commit ea1af4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var tests = [

describe('Pty', function() {
tests.forEach(function (testCase) {
if (testCase.options.uid && testCase.options.gid && process.getgid() !== 0) {
if (testCase.options.uid && testCase.options.gid && (process.platform == 'win32' || process.getgid() !== 0)) {
// Skip tests that contains user impersonation if we are not able to do so.
return it.skip(testCase.name);
}
Expand Down

0 comments on commit ea1af4a

Please sign in to comment.