From cf6f729213566343775ac99ef8a2238dd4f0bfac Mon Sep 17 00:00:00 2001 From: kazu Date: Thu, 11 Jan 2018 13:56:04 +0000 Subject: [PATCH] Fix indent and use as skipped message instead of comment git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/gdbm/test_gdbm.rb | 2 +- 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")