summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-03-07 19:59:53 -0800
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:59 +0900
commit8adbe292ed70089a33ff7eb0e9a0ce0bcd0bd5e4 (patch)
tree5fc62ecc0699b2d4ab53bd5c0b007d05b10d3d6b /test
parentc01568e070a205ab5a7bad42ead9b2dba1f74eff (diff)
Implement Insn::FixnumSub (https://github.com/Shopify/zjit/pull/42)
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_zjit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb
index 65de688010..d277907168 100644
--- a/test/ruby/test_zjit.rb
+++ b/test/ruby/test_zjit.rb
@@ -49,7 +49,6 @@ class TestZJIT < Test::Unit::TestCase
# Test argument ordering
def test_opt_minus
- omit 'FixnumSub is not implemented yet'
assert_compiles '2', %q{
def test(a, b) = a - b
test(2, 1) # profile opt_minus
@@ -84,11 +83,12 @@ class TestZJIT < Test::Unit::TestCase
end
# Run a Ruby process with ZJIT options and a pipe for writing test results
- def eval_with_jit(script, call_threshold: 1, timeout: 1000, pipe_fd:)
+ def eval_with_jit(script, call_threshold: 1, timeout: 1000, pipe_fd:, debug: true)
args = [
"--disable-gems",
"--zjit-call-threshold=#{call_threshold}",
]
+ args << "--zjit-debug" if debug
args << "-e" << script_shell_encode(script)
pipe_r, pipe_w = IO.pipe
# Separate thread so we don't deadlock when