diff options
author | Jeremy Evans <[email protected]> | 2021-07-28 08:45:26 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2021-07-28 08:48:01 -0700 |
commit | 3b9fe3e15a352c8e3b81fd640e076fe4b6c375a0 (patch) | |
tree | def189316999442420cee47d331d03c4715b9a29 /test/ruby/test_exception.rb | |
parent | d04ba0906c35013a8432535168eec270d6e9a913 (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.
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 3 |
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 |