summaryrefslogtreecommitdiff
path: root/bootstraptest/test_ractor.rb
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2021-05-25 10:28:18 +0200
committerJun Aruga <junaruga@users.noreply.github.com>2021-05-25 12:38:05 +0200
commit9e56a22be6706c8698268d5ebe4f59960d3485b1 (patch)
treedebf61f90b7061dbfe9a2e2765178c2b2387b8f9 /bootstraptest/test_ractor.rb
parent9d4266fd5555c9c4388e2e8592008d0e0d8ccf21 (diff)
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>.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4518
Diffstat (limited to 'bootstraptest/test_ractor.rb')
-rw-r--r--bootstraptest/test_ractor.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 6299b50e3b..7e77dfcec1 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -248,7 +248,8 @@ assert_equal 30.times.map { 'ok' }.to_s, %q{
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{