ruby-changes:38168
From: nobu <ko1@a...>
Date: Sun, 12 Apr 2015 10:03:56 +0900 (JST)
Subject: [ruby-changes:38168] nobu:r50249 (trunk): test_file_exhaustive.rb: skip when root
nobu 2015-04-12 10:03:30 +0900 (Sun, 12 Apr 2015) New Revision: 50249 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50249 Log: 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. Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 50248) +++ test/ruby/test_file_exhaustive.rb (revision 50249) @@ -409,7 +409,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L409 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::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L1365 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/