123456789_123456789_123456789_123456789_123456789_

Class: Test::Unit::AutoRunner::GCStressListener

Relationships & Source Files
Inherits: Object
Defined in: lib/test/unit/autorunner.rb

Instance Method Summary

Instance Method Details

#attach_to_mediator(mediator)

[ GitHub ]

  
# File 'lib/test/unit/autorunner.rb', line 611

def attach_to_mediator(mediator)
  mediator.add_listener(TestCase::STARTED) do |test|
    GC.start
    GC.stress = true
  end

  mediator.add_listener(TestCase::FINISHED) do |test|
    GC.start
    GC.stress = false
  end
end