diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2026-01-08 22:42:38 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2026-01-14 17:19:52 -0500 |
| commit | ac229890660d023c423869601d1ab404187824f4 (patch) | |
| tree | 95cba995f508f8393d42934ed347cd43984e6023 /test/ruby | |
| parent | 068713964a3949c9221da291e5e5f5167e692239 (diff) | |
YJIT: Add crashing test for --yjit-dump-insns
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_yjit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index 53b056d335..d6b9b75648 100644 --- a/test/ruby/test_yjit.rb +++ b/test/ruby/test_yjit.rb @@ -1804,6 +1804,18 @@ class TestYJIT < Test::Unit::TestCase RUBY end + def test_yjit_dump_insns + # Testing that this undocumented debugging feature doesn't crash + args = [ + '--yjit-call-threshold=1', + '--yjit-dump-insns', + '-e def foo(case:) = {case:}[:case]', + '-e foo(case:0)', + ] + _out, _err, status = invoke_ruby(args, '', true, true) + assert_not_predicate(status, :signaled?) + end + private def code_gc_helpers |
