[前][次][番号順一覧][スレッド一覧]

ruby-changes:66955

From: Jeremy <ko1@a...>
Date: Thu, 29 Jul 2021 00:51:08 +0900 (JST)
Subject: [ruby-changes:66955] 3b9fe3e15a (master): Handle Timeout::Error instead of NoMemoryError in test

https://git.ruby-lang.org/ruby.git/commit/?id=3b9fe3e15a

From 3b9fe3e15a352c8e3b81fd640e076fe4b6c375a0 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
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(+)

diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 87d7d6f..4abbb4c 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -583,6 +583,9 @@ end.join https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L583
   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.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]