summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-05 03:31:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-05 03:31:07 +0000
commit73645c1c51847198e2195d36cc8be17fbe63db25 (patch)
tree4c3bb8a92746af2f5c5c7e9012be33f92eb1ec92 /test
parent0e414175fdcc19550fe44cc1ad8cb4827d2e3da8 (diff)
vm_insnhelper.c: fix missing reason
* vm_insnhelper.c (ci_missing_reason): return the reason of method missing in call info. * vm_insnhelper.c (vm_call_opt_send): re-apply r49500 with the proper missing reason. [Bug #10828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/symbol/test_inadvertent_creation.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb
index fdd1e252ce..cd8ad8ce22 100644
--- a/test/-ext-/symbol/test_inadvertent_creation.rb
+++ b/test/-ext-/symbol/test_inadvertent_creation.rb
@@ -383,7 +383,7 @@ module Test_Symbol
assert_no_immortal_symbol_created("send should not leak - str mm") do |name|
assert_nothing_raised(NoMethodError) {x.send(name)}
end
- end if false
+ end
def test_send_leak_symbol_custom_method_missing
x = Object.new
@@ -391,7 +391,7 @@ module Test_Symbol
assert_no_immortal_symbol_created("send should not leak - sym mm") do |name|
assert_nothing_raised(NoMethodError) {x.send(name.to_sym)}
end
- end if false
+ end
def test_send_leak_string_no_optimization
assert_no_immortal_symbol_created("send should not leak - str slow") do |name|