From 62e618ec3e25433a01a0446bd41e42eb60801953 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 6 Aug 2015 17:07:37 +0900 Subject: [PATCH] Segfaulting test case for Object's unbound instance_method's super_method --- test/ruby/test_method.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index b7b140d..da893b0 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -868,6 +868,11 @@ class TestMethod < Test::Unit::TestCase assert_equal(Base.instance_method(:foo), m, Feature9781) m = assert_nothing_raised(NameError, Feature9781) {break m.super_method} assert_nil(m, Feature9781) + + bug11419 = '[ruby-core:70254]' + m = Object.instance_method(:tap) + m = assert_nothing_raised(NameError, bug11419) {break m.super_method} + assert_nil(m, bug11419) end def test_super_method_module -- 2.5.0