summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-08-25 23:00:18 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-25 23:00:19 -0700
commitd6f21b308bcff03e82f8b3dbf11a852ce111b3b3 (patch)
tree58aaa4f5551b4adae2bf0ac52287162c1f2f4c75 /test/ruby
parent098a3cfaa7afe40e023e589c92124bac18e207c3 (diff)
Convert catch_except_t to stdbool
catch_excep_t is a field that exists for MJIT. In the process of rewriting MJIT in Ruby, I added API to convert 1/0 of _Bool to true/false, and it seemed confusing and hard to maintain if you don't use _Bool for *_p fields.
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_mjit.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_mjit.rb b/test/ruby/test_mjit.rb
index 3a1dcf7f09..9cd93855bd 100644
--- a/test/ruby/test_mjit.rb
+++ b/test/ruby/test_mjit.rb
@@ -782,9 +782,9 @@ class TestMJIT < Test::Unit::TestCase
def test_catching_deep_exception
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '1', success_count: 4)
begin;
- def catch_true(paths, prefixes) # catch_except_p: TRUE
- prefixes.each do |prefix| # catch_except_p: TRUE
- paths.each do |path| # catch_except_p: FALSE
+ def catch_true(paths, prefixes) # catch_except_p: true
+ prefixes.each do |prefix| # catch_except_p: true
+ paths.each do |path| # catch_except_p: false
return path
end
end