Sha256: 773957cfca006ae35f72f371e62e48b0b67ef55ceb829e1ce161a9312bbffe6e
Contents?: true
Size: 748 Bytes
Versions: 7
Compression:
Stored size: 748 Bytes
Contents
module DeepTest class Worker def initialize(blackboard) @blackboard = blackboard end def run while test_case = @blackboard.take_test result = run_test_case test_case result = run_test_case test_case if result.failed_due_to_deadlock? if result.failed_due_to_deadlock? result = Test::Unit::TestResult.new result.add_run result.output = "-deadlock-" end @blackboard.write_result result end end protected def run_test_case(test_case) result = Test::Unit::TestResult.new output = capture_stdout do test_case.run(result) {|channel,event|} end result.output = output result end end end
Version data entries
7 entries across 7 versions & 1 rubygems