Sha256: 264263cca56044c5018d0edd03fbc72422b1476bbab0b4a9580842904de7d289
Contents?: true
Size: 887 Bytes
Versions: 2
Compression:
Stored size: 887 Bytes
Contents
module DeepTest module Test class WorkUnit def initialize(test_case) @test_case = test_case end def run result = run_without_deadlock_protection result = run_without_deadlock_protection if result.failed_due_to_deadlock? if result.failed_due_to_deadlock? result = ::Test::Unit::TestResult.new result.add_run result.output = "-deadlock-" end result end def ==(other) return false unless other.class == self.class @test_case == other.instance_variable_get(:@test_case) end protected def run_without_deadlock_protection result = ::Test::Unit::TestResult.new output = capture_stdout do @test_case.run(result) {|channel,event|} end result.output = output result end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deep_test-1.1.4 | lib/deep_test/test/work_unit.rb |
deep_test-1.1.3 | lib/deep_test/test/work_unit.rb |