aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bootstraptest/test_insns.rb4
-rw-r--r--test/ruby/test_jit.rb5
2 files changed, 3 insertions, 6 deletions
diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb
index 2b0f2584c5..fe0b01a97e 100644
--- a/bootstraptest/test_insns.rb
+++ b/bootstraptest/test_insns.rb
@@ -399,8 +399,8 @@ tests = [
! X.new
},
- [ 'opt_regexpmatch1', %q{ /true/ =~ 'true' && $~ }, ],
- [ 'opt_regexpmatch1', <<-'},', ], # {
+ [ 'opt_regexpmatch2', %q{ /true/ =~ 'true' && $~ }, ],
+ [ 'opt_regexpmatch2', <<-'},', ], # {
class Regexp; def =~ other; true; end; end
/true/ =~ 'true'
},
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 0274f59252..453290d2f0 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -591,11 +591,8 @@ class TestJIT < Test::Unit::TestCase
assert_compile_once('!!true', result_inspect: 'true', insns: %i[opt_not])
end
- def test_compile_insn_opt_regexpmatch1
- assert_compile_once("/true/ =~ 'true'", result_inspect: '0', insns: %i[opt_regexpmatch1])
- end
-
def test_compile_insn_opt_regexpmatch2
+ assert_compile_once("/true/ =~ 'true'", result_inspect: '0', insns: %i[opt_regexpmatch2])
assert_compile_once("'true' =~ /true/", result_inspect: '0', insns: %i[opt_regexpmatch2])
end