mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
d04ba0906c
commit
3b9fe3e15a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue