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

ruby-changes:34350

From: nobu <ko1@a...>
Date: Sun, 15 Jun 2014 06:54:22 +0900 (JST)
Subject: [ruby-changes:34350] nobu:r46431 (trunk): runner.rb: include event name

nobu	2014-06-15 06:54:11 +0900 (Sun, 15 Jun 2014)

  New Revision: 46431

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

  Log:
    runner.rb: include event name
    
    * test/runner.rb (after_teardown): include active trace event name
      in the failure message.

  Modified files:
    trunk/test/runner.rb
Index: test/runner.rb
===================================================================
--- test/runner.rb	(revision 46430)
+++ test/runner.rb	(revision 46431)
@@ -25,7 +25,7 @@ module Test::Unit https://github.com/ruby/ruby/blob/trunk/test/runner.rb#L25
 
       # detect zombie traces.
       TracePoint.stat.each{|key, (activated, deleted)|
-        assert_equal(0, activated, 'The number of active trace events should be zero.')
+        assert_equal(0, activated, "The number of active trace events (#{key}) should be zero.")
         # puts "TracePoint - deleted: #{deleted}" if deleted > 0
       }
     end

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

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