diff options
-rw-r--r-- | bootstraptest/test_ractor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index 9318ddf90a..122994e555 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -1673,7 +1673,7 @@ assert_equal '30', %q{ } # Selector#wait can support dynamic addition -yjit_enabled = defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled? +yjit_enabled = ENV.key?('RUBY_YJIT_ENABLE') || ENV.fetch('RUN_OPTS', '').include?('yjit') || BT.ruby.include?('yjit') assert_equal '600', %q{ RN = 100 s = Ractor::Selector.new |