summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-07-28 08:45:26 -0700
committerJeremy Evans <code@jeremyevans.net>2021-07-28 08:48:01 -0700
commit3b9fe3e15a352c8e3b81fd640e076fe4b6c375a0 (patch)
treedef189316999442420cee47d331d03c4715b9a29
parentd04ba0906c35013a8432535168eec270d6e9a913 (diff)
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.
-rw-r--r--test/ruby/test_exception.rb3
1 files changed, 3 insertions, 0 deletions
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