From fe294d75feaac9367e50dbc1aed96dff104e7b7c Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 12 Apr 2015 01:03:30 +0000 Subject: test_file_exhaustive.rb: skip when root * test/ruby/test_file_exhaustive.rb (test_owned_p): skipt when running as super user. * test/ruby/test_file_exhaustive.rb (test_stat_owned_p): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_file_exhaustive.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 5ebdbc5ff4..315222e4e7 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -409,7 +409,7 @@ class TestFileExhaustive < Test::Unit::TestCase def test_owned_p return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM assert_file.owned?(regular_file) - assert_file.not_owned?(notownedfile) + assert_file.not_owned?(notownedfile) if notownedfile end def test_grpowned_p ## xxx @@ -1365,7 +1365,7 @@ class TestFileExhaustive < Test::Unit::TestCase def test_stat_owned_p return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM assert(File::Stat.new(regular_file).owned?) - assert(!File::Stat.new(notownedfile).owned?) + assert(!File::Stat.new(notownedfile).owned?) if notownedfile end def test_stat_grpowned_p ## xxx -- cgit v1.2.3