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

ruby-changes:66331

From: Jun <ko1@a...>
Date: Tue, 25 May 2021 19:38:30 +0900 (JST)
Subject: [ruby-changes:66331] 9e56a22be6 (master): bootstraptest/test_ractor.rb: Skip an assertion on Travis arm64.

https://git.ruby-lang.org/ruby.git/commit/?id=9e56a22be6

From 9e56a22be6706c8698268d5ebe4f59960d3485b1 Mon Sep 17 00:00:00 2001
From: Jun Aruga <jaruga@r...>
Date: Tue, 25 May 2021 10:28:18 +0200
Subject: bootstraptest/test_ractor.rb: Skip an assertion on Travis arm64.

Skip the assertion to test the `Ractor.select` from multiple ractors that rarely
fails on Travis arm64.
See <https://bugs.ruby-lang.org/issues/17878>.
---
 bootstraptest/test_ractor.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 6299b50..7e77dfc 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -248,7 +248,8 @@ assert_equal 30.times.map { 'ok' }.to_s, %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L248
   30.times.map{|i|
     test i
   }
-} unless ENV['RUN_OPTS'] =~ /--jit-min-calls=5/ # This always fails with --jit-wait --jit-min-calls=5
+} unless ENV['RUN_OPTS'] =~ /--jit-min-calls=5/ || # This always fails with --jit-wait --jit-min-calls=5
+  (ENV.key?('TRAVIS') && ENV['TRAVIS_CPU_ARCH'] == 'arm64') # https://bugs.ruby-lang.org/issues/17878
 
 # Exception for empty select
 assert_match /specify at least one ractor/, %q{
-- 
cgit v1.1


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

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