diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-01-11 21:27:59 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-01-11 21:40:51 +0900 |
commit | 167121a9e75ca2a7a476627ea7f37634c1bd68c8 (patch) | |
tree | d40fd1c7a8c299dbf6f7ffb2cf4cddf2ecfc38ee | |
parent | 6b87d980112c1b37f0bb64d5fa5d78a3f5899fdf (diff) | |
download | ruby-167121a9e75ca2a7a476627ea7f37634c1bd68c8.tar.gz |
[ruby/find] Use omit instead of skip for test-unit
https://github.com/ruby/find/commit/0ebbd5b852
-rw-r--r-- | test/test_find.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_find.rb b/test/test_find.rb index 0e691214c5..f2dad05324 100644 --- a/test/test_find.rb +++ b/test/test_find.rb @@ -60,7 +60,7 @@ class TestFind < Test::Unit::TestCase begin File.symlink("#{d}/b", "#{d}/c") rescue NotImplementedError, Errno::EACCES - skip "symlink is not supported." + omit "symlink is not supported." end a = [] Find.find(d) {|f| a << f } @@ -103,8 +103,8 @@ class TestFind < Test::Unit::TestCase end def test_unreadable_dir - skip "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM - skip "because root can read anything" if Process.uid == 0 + omit "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM + omit "because root can read anything" if Process.uid == 0 Dir.mktmpdir {|d| Dir.mkdir(dir = "#{d}/dir") @@ -158,8 +158,8 @@ class TestFind < Test::Unit::TestCase Find.find(d, ignore_error: true).each {|f| a << f } assert_equal([d, dir, file], a) - skip "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM - skip "skipped because root can read anything" if Process.uid == 0 + omit "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM + omit "skipped because root can read anything" if Process.uid == 0 a = [] assert_raise_with_message(Errno::EACCES, /#{Regexp.quote(file)}/) do @@ -185,7 +185,7 @@ class TestFind < Test::Unit::TestCase begin File.symlink("foo", "#{d}/bar") rescue NotImplementedError, Errno::EACCES - skip "symlink is not supported." + omit "symlink is not supported." end a = [] Find.find(d) {|f| a << f } @@ -199,7 +199,7 @@ class TestFind < Test::Unit::TestCase begin File.symlink("foo", "#{d}/bar") rescue NotImplementedError, Errno::EACCES - skip "symlink is not supported." + omit "symlink is not supported." end assert_raise(Errno::ENOENT) { Find.find(d) {|f| File.stat(f) } @@ -245,7 +245,7 @@ class TestFind < Test::Unit::TestCase begin File.symlink("d1", dir_1) rescue NotImplementedError, Errno::EACCES - skip "symlink is not supported." + omit "symlink is not supported." end end } |