From 5f7f1e516218a05ee904c9d4977e5fa4436a6e16 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 14 Oct 2013 19:14:20 +0000 Subject: [PATCH] test_profile_frames.rb: assert first_lineno * test/-ext-/debug/test_profile_frames.rb (test_profile_frames): assert first_lineno, only the top level of methods for the time being. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/-ext-/debug/test_profile_frames.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/-ext-/debug/test_profile_frames.rb b/test/-ext-/debug/test_profile_frames.rb index f3184b97a3..5eb8c88dc2 100644 --- a/test/-ext-/debug/test_profile_frames.rb +++ b/test/-ext-/debug/test_profile_frames.rb @@ -85,6 +85,11 @@ class TestProfileFrames < Test::Unit::TestCase assert_equal(singleton_method_p[i], singleton_p, err_msg) assert_equal(method_names[i], method_name, err_msg) assert_equal(qualified_method_names[i], qualified_method_name, err_msg) + if label == method_name + c = classes[i] + m = singleton_p ? c.method(method_name) : c.instance_method(method_name) + assert_equal(m.source_location[1], first_lineno, err_msg) + end } end end