ruby-changes:70821
From: Hiroshi <ko1@a...>
Date: Tue, 11 Jan 2022 21:41:08 +0900 (JST)
Subject: [ruby-changes:70821] 167121a9e7 (master): [ruby/find] Use omit instead of skip for test-unit
https://git.ruby-lang.org/ruby.git/commit/?id=167121a9e7 From 167121a9e75ca2a7a476627ea7f37634c1bd68c8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 11 Jan 2022 21:27:59 +0900 Subject: [ruby/find] Use omit instead of skip for test-unit https://github.com/ruby/find/commit/0ebbd5b852 --- test/test_find.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test_find.rb b/test/test_find.rb index 0e691214c5d..f2dad053242 100644 --- a/test/test_find.rb +++ b/test/test_find.rb @@ -60,7 +60,7 @@ class TestFind < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L60 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 https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L103 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 https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L158 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 https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L185 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 https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L199 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 https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L245 begin File.symlink("d1", dir_1) rescue NotImplementedError, Errno::EACCES - skip "symlink is not supported." + omit "symlink is not supported." end end } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/