aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-07-11 14:39:32 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-07-11 14:39:32 -0700
commit503f987ead41f73205f2dbbfc93cd8ecd635c3a5 (patch)
treeec32255b9f4a9add3e43fbf80e29d93e52fbbece /bootstraptest
parentd45118aaafe4e1e8409c13dea462fbbaf8b4cb8c (diff)
downloadruby-503f987ead41f73205f2dbbfc93cd8ecd635c3a5.tar.gz
Skip a flaky test for RJIT
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_thread.rb5
1 files 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