diff options
-rw-r--r-- | test/-ext-/float/test_nextafter.rb | 2 | ||||
-rw-r--r-- | test/fileutils/test_fileutils.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_exception.rb | 2 | ||||
-rw-r--r-- | test/socket/test_addrinfo.rb | 2 | ||||
-rw-r--r-- | test/socket/test_basicsocket.rb | 2 | ||||
-rw-r--r-- | test/zlib/test_zlib.rb | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/test/-ext-/float/test_nextafter.rb b/test/-ext-/float/test_nextafter.rb index 636f803fac..e0a76935b1 100644 --- a/test/-ext-/float/test_nextafter.rb +++ b/test/-ext-/float/test_nextafter.rb @@ -50,7 +50,7 @@ class TestFloatExt < Test::Unit::TestCase assert_equal(s1, s2, "Bug::Float.missing_nextafter(#{'%a' % n1}, #{'%a' % n2}) = #{'%a' % v1} != " + "#{'%a' % v2} = Bug::Float.system_nextafter(#{'%a' % n1}, #{'%a' % n2})") - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError if /aix/ =~ RUBY_PLATFORM skip "Known bug in nextafter(3) on AIX" end diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 63936d1a05..36b5d6ef50 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -242,7 +242,7 @@ class TestFileUtils < Test::Unit::TestCase # def test_assert_output_lines - assert_raise(MiniTest::Assertion) { + assert_raise(Test::Unit::AssertionFailedError) { Timeout.timeout(0.5) { assert_output_lines([]) { Thread.current.report_on_exception = false diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index d1ff5612d3..67f38c2e91 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -577,7 +577,7 @@ end.join end end; end - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError # Possibly compiled with -DRUBY_DEBUG, in which # case rb_bug is used instead of NoMemoryError, # and we cannot test ensure after NoMemoryError. diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index e068c6c216..5bd34cd5eb 100644 --- a/test/socket/test_addrinfo.rb +++ b/test/socket/test_addrinfo.rb @@ -586,7 +586,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase ai = ipv6(addr) begin assert(ai.ipv4? || ai.send(meth), "ai=#{addr_exp}; ai.ipv4? || .#{meth}") - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError if /aix/ =~ RUBY_PLATFORM skip "Known bug in IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED on AIX" end diff --git a/test/socket/test_basicsocket.rb b/test/socket/test_basicsocket.rb index 7b1c9b4a06..02e393d4e8 100644 --- a/test/socket/test_basicsocket.rb +++ b/test/socket/test_basicsocket.rb @@ -32,7 +32,7 @@ class TestSocket_BasicSocket < Test::Unit::TestCase n = s.getsockopt(Socket::SOL_SOCKET, Socket::SO_ERROR) assert_equal([0].pack("i"), n.data) - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError s.close if /aix/ =~ RUBY_PLATFORM skip "Known bug in getsockopt(2) on AIX" diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 4780bc077b..a629c0c902 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -1319,7 +1319,7 @@ if defined? Zlib assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1)) rescue NotImplementedError skip "adler32_combine is not implemented" - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError if /aix/ =~ RUBY_PLATFORM skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed" end @@ -1354,7 +1354,7 @@ if defined? Zlib assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1)) rescue NotImplementedError skip "crc32_combine is not implemented" - rescue Minitest::Assertion + rescue Test::Unit::AssertionFailedError if /aix/ =~ RUBY_PLATFORM skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed" end |