diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 16bfdd9ea2..24bbdafe8e 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -891,4 +891,8 @@ def yjit_enabled? ENV.key?('RUBY_YJIT_ENABLE') || ENV.fetch('RUN_OPTS', '').include?('yjit') || BT.ruby.include?('yjit') end +def zjit_enabled? + ENV.key?('RUBY_ZJIT_ENABLE') || ENV.fetch('RUN_OPTS', '').include?('zjit') || BT.ruby.include?('zjit') +end + exit main diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index 1c89cd40ee..834c7ceebb 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -389,7 +389,7 @@ assert_equal '{ok: 3}', %q{ end 3.times.map{Ractor.receive}.tally -} unless yjit_enabled? # `[BUG] Bus Error at 0x000000010b7002d0` in jit_exec() +} unless yjit_enabled? || zjit_enabled? # YJIT: `[BUG] Bus Error at 0x000000010b7002d0` in jit_exec(), ZJIT hangs # unshareable object are copied assert_equal 'false', %q{