diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-12 01:03:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-12 01:03:30 +0000 |
commit | fe294d75feaac9367e50dbc1aed96dff104e7b7c (patch) | |
tree | 8cc1af90da61a8d00c809bf957b6567c756827ce /test/ruby | |
parent | 2722cb9ce1170751e705103fb05a81a7a9e96e64 (diff) |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |