aboutsummaryrefslogtreecommitdiffstats
path: root/test/fileutils
diff options
context:
space:
mode:
Diffstat (limited to 'test/fileutils')
-rw-r--r--test/fileutils/test_fileutils.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 35b3f52cfa..19359e4bdd 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -75,6 +75,10 @@ class TestFileUtils < Test::Unit::TestCase
end
def root_in_posix?
+ if /cygwin/ =~ RUBY_PLATFORM
+ # FIXME: privilege if groups include root user?
+ return Process.groups.include?(0)
+ end
if Process.respond_to?('uid')
return Process.uid == 0
else