From 3b9fe3e15a352c8e3b81fd640e076fe4b6c375a0 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 28 Jul 2021 08:45:26 -0700 Subject: Handle Timeout::Error instead of NoMemoryError in test Solaris 11 CI times out instead of raising NoMemoryError for large allocations, so it cannot test ensure after NoMemoryError. --- test/ruby/test_exception.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/ruby/test_exception.rb') diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 87d7d6f660..4abbb4cf6f 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -583,6 +583,9 @@ end.join rescue RangeError # MingW can raise RangeError instead of NoMemoryError, # so we cannot test this case. + rescue Timeout::Error + # Solaris 11 CI times out instead of raising NoMemoryError, + # so we cannot test this case. end def test_equal -- cgit v1.2.3