diff options
-rw-r--r-- | test/gdbm/test_gdbm.rb | 2 | ||||
-rw-r--r-- | test/test_find.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index 9e97eb3587..7f7ab6aab9 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -213,7 +213,7 @@ if defined? GDBM end if defined? GDBM::NOLOCK # gdbm 1.8.0 specific def test_s_open_error - skip if Process.uid == 0 # because root can open anything + skip "because root can open anything" if Process.uid == 0 assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", 0)) assert_raise(Errno::EACCES, Errno::EWOULDBLOCK) { diff --git a/test/test_find.rb b/test/test_find.rb index 01b1fcc121..0e691214c5 100644 --- a/test/test_find.rb +++ b/test/test_find.rb @@ -104,7 +104,7 @@ class TestFind < Test::Unit::TestCase def test_unreadable_dir skip "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM - skip if Process.uid == 0 # because root can read anything + skip "because root can read anything" if Process.uid == 0 Dir.mktmpdir {|d| Dir.mkdir(dir = "#{d}/dir") |