diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-12-03 14:31:48 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2025-12-05 15:49:25 -0500 |
| commit | 7ecd369a87d65879f98d95d726772238c1dabc16 (patch) | |
| tree | e39f9b1527110111057fe1580dc109a70c48ec24 /test/ruby | |
| parent | 3269ae1b0d1aaa78d12b1527a2f6b095e148c5d3 (diff) | |
ZJIT: Account for when YJIT is on by default in test_zjit_enable
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_zjit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index 45ee42e6a2..03d2461fa0 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -60,7 +60,9 @@ class TestZJIT < Test::Unit::TestCase end def test_zjit_enable - assert_separately([], <<~'RUBY') + # --disable-all is important in case the build/environment has YJIT enabled by + # default through e.g. -DYJIT_FORCE_ENABLE. Can't enable ZJIT when YJIT is on. + assert_separately(["--disable-all"], <<~'RUBY') refute_predicate RubyVM::ZJIT, :enabled? refute_predicate RubyVM::ZJIT, :stats_enabled? refute_includes RUBY_DESCRIPTION, "+ZJIT" |
