[前][次][番号順一覧][スレッド一覧]

ruby-changes:31207

From: nobu <ko1@a...>
Date: Tue, 15 Oct 2013 04:14:43 +0900 (JST)
Subject: [ruby-changes:31207] nobu:r43286 (trunk): test_profile_frames.rb: assert first_lineno

nobu	2013-10-15 04:14:20 +0900 (Tue, 15 Oct 2013)

  New Revision: 43286

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43286

  Log:
    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.

  Modified files:
    trunk/test/-ext-/debug/test_profile_frames.rb
Index: test/-ext-/debug/test_profile_frames.rb
===================================================================
--- test/-ext-/debug/test_profile_frames.rb	(revision 43285)
+++ test/-ext-/debug/test_profile_frames.rb	(revision 43286)
@@ -85,6 +85,11 @@ class TestProfileFrames < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/-ext-/debug/test_profile_frames.rb#L85
       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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]