зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
2722cb9ce1
Коммит
fe294d75fe
|
@ -409,7 +409,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
||||||
def test_owned_p
|
def test_owned_p
|
||||||
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
|
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
|
||||||
assert_file.owned?(regular_file)
|
assert_file.owned?(regular_file)
|
||||||
assert_file.not_owned?(notownedfile)
|
assert_file.not_owned?(notownedfile) if notownedfile
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_grpowned_p ## xxx
|
def test_grpowned_p ## xxx
|
||||||
|
@ -1365,7 +1365,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
||||||
def test_stat_owned_p
|
def test_stat_owned_p
|
||||||
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
|
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
|
||||||
assert(File::Stat.new(regular_file).owned?)
|
assert(File::Stat.new(regular_file).owned?)
|
||||||
assert(!File::Stat.new(notownedfile).owned?)
|
assert(!File::Stat.new(notownedfile).owned?) if notownedfile
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_stat_grpowned_p ## xxx
|
def test_stat_grpowned_p ## xxx
|
||||||
|
|
Загрузка…
Ссылка в новой задаче