summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-03 17:03:25 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-03 17:03:26 -0800
commit8d31a60f47fb053bcfe0c744a89bd666dae48539 (patch)
tree27ef8bd41333f670c321ae21753b5c53db198600 /bootstraptest
parent4d59d01621aff771f669cf82648eeec84e3f720f (diff)
downloadruby-8d31a60f47fb053bcfe0c744a89bd666dae48539.tar.gz
Fix a YJIT enablement check
This should be enough for `make test` and `make btest-ruby` while it doesn't work for `make btest`.
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_ractor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index b3776f6ced..9318ddf90a 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 = ENV.key?('RUBY_YJIT_ENABLE') || ENV.fetch('RUN_OPTS', '').include?('yjit')
+yjit_enabled = defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
assert_equal '600', %q{
RN = 100
s = Ractor::Selector.new