summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-07-30 10:11:10 -0700
committerGitHub <noreply@github.com>2025-07-30 10:11:10 -0700
commit2cd10de33097d44f85a42bcde0f8bf17c90cd53a (patch)
tree221d1237964ae879b37eb4352e6c2d0fa950eac7 /test
parent4263c49d1ce61a4e8d1a84cc144d4185ccf935f9 (diff)
ZJIT: Prepare for sharing JIT hooks with ZJIT (#14044)
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_zjit.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb
index b78d53e682..2d18759f50 100644
--- a/test/ruby/test_zjit.rb
+++ b/test/ruby/test_zjit.rb
@@ -1084,6 +1084,13 @@ class TestZJIT < Test::Unit::TestCase
}, call_threshold: 2
end
+ def test_zjit_option_uses_array_each_in_ruby
+ omit 'ZJIT wrongly compiles Array#each, so it is disabled for now'
+ assert_runs '"<internal:array>"', %q{
+ Array.instance_method(:each).source_location&.first
+ }
+ end
+
def test_profile_under_nested_jit_call
assert_compiles '[nil, nil, 3]', %q{
def profile