diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/runner.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/runner.rb b/test/runner.rb index 2956b85df8..e7bff26e8c 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -22,6 +22,12 @@ module Test::Unit def after_teardown super assert_empty(Process.waitall) + + # detect zombie traces. + TracePoint.stat.each{|key, (activated, deleted)| + assert_equal(0, activated, 'The number of active trace events should be zero.') + # puts "TracePoint - deleted: #{deleted}" if deleted > 0 + } end end class TestCase |