From 503f987ead41f73205f2dbbfc93cd8ecd635c3a5 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 11 Jul 2023 14:39:32 -0700 Subject: [PATCH] Skip a flaky test for RJIT --- bootstraptest/test_thread.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index d7d19e97c9..0c163d0db0 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -279,6 +279,7 @@ assert_normal_exit %q{ exec "/" } +rjit_enabled = RUBY_DESCRIPTION.include?('+RJIT') assert_normal_exit %q{ (0..10).map { Thread.new { @@ -289,7 +290,7 @@ assert_normal_exit %q{ }.each {|t| t.join } -} +} unless rjit_enabled # flaky assert_equal 'ok', %q{ def m @@ -483,7 +484,7 @@ assert_equal 'foo', %q{ [th1, th2].each {|t| t.join } GC.start f.call.source -} unless ENV['RUN_OPTS'] =~ /rjit/ # flaky +} unless rjit_enabled # flaky assert_normal_exit %q{ class C def inspect