diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-14 22:11:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-14 22:11:22 +0000 |
commit | 045b6e9fb9b3aee5fe552d70fbd1dd707e852315 (patch) | |
tree | 253c087c2214d5f9dc2b184c137aea718e7d84cd /test | |
parent | 261aaedd7366226cbc6a4066bbd749ebc7986905 (diff) | |
download | ruby-045b6e9fb9b3aee5fe552d70fbd1dd707e852315.tar.gz |
runner.rb: check increment
* test/runner.rb (after_teardown): check increment of active trace
events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/runner.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/runner.rb b/test/runner.rb index c1eae3540a..5a4ef3d6db 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -24,8 +24,10 @@ module Test::Unit assert_empty(Process.waitall) # detect zombie traces. + zombie_traces = Hash.new(0) TracePoint.stat.each{|key, (activated, deleted)| - assert_equal(0, activated, "The number of active trace events (#{key}) should be zero.") + old, zombie_traces[key] = zombie_traces[key], activated + assert_equal(old, activated, "The number of active trace events (#{key}) should not increase.") # puts "TracePoint - deleted: #{deleted}" if deleted > 0 } end |