1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.

a patch from Lucas Nussbaum in [ruby-core:22209].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2009-02-18 18:17:26 +00:00
parent b09fde68e6
commit 234bc1d7a9
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Feb 19 03:12:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.
a patch from Lucas Nussbaum in [ruby-core:22209].
Thu Feb 19 03:00:49 2009 Akinori MUSHA <knu@iDaemons.org>
* README.EXT, README.EXT.ja: Improve the document about
@ -16267,7 +16272,7 @@ Tue Jun 24 09:40:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
Tue Jun 24 00:21:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
* compile.c (iseq_build_from_ary): initialize arg_opts, a patch from
Adam Strzelecki <ono@java.pl> in [ruby-core:17220].
Adam Strzelecki <ono at java.pl> in [ruby-core:17220].
Tue Jun 24 00:10:53 2008 wanabe <s.wanabe@gmail.com>

View file

@ -142,6 +142,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_readable_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0200, @file)
assert(!(File.readable?(@file)))
File.chmod(0600, @file)
@ -151,6 +152,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_readable_real_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0200, @file)
assert(!(File.readable_real?(@file)))
File.chmod(0600, @file)
@ -171,6 +173,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_writable_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0400, @file)
assert(!(File.writable?(@file)))
File.chmod(0600, @file)
@ -180,6 +183,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_writable_real_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0400, @file)
assert(!(File.writable_real?(@file)))
File.chmod(0600, @file)
@ -610,6 +614,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_stat_readable_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0200, @file)
assert(!(File::Stat.new(@file).readable?))
File.chmod(0600, @file)
@ -618,6 +623,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_stat_readable_real_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0200, @file)
assert(!(File::Stat.new(@file).readable_real?))
File.chmod(0600, @file)
@ -636,6 +642,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_stat_writable_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0400, @file)
assert(!(File::Stat.new(@file).writable?))
File.chmod(0600, @file)
@ -644,6 +651,7 @@ class TestFileExhaustive < Test::Unit::TestCase
def test_stat_writable_real_p
return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
return if Process.euid == 0
File.chmod(0400, @file)
assert(!(File::Stat.new(@file).writable_real?))
File.chmod(0600, @file)