# File lib/deep_test/spec/work_unit.rb, line 8 8: def run 9: # Dup options here to avoid clobbering the reporter on someone 10: # elses options reference (Such as ExampleGroupRunner) 11: original_options = ::Spec::Runner.options 12: ::Spec::Runner.use ::Spec::Runner.options.dup 13: ::Spec::Runner.options.reporter = ResultReporter.new(@identifier) 14: result = run_without_deadlock_protection 15: result = run_without_deadlock_protection if result.failed_due_to_deadlock? 16: result = result.deadlock_result if result.failed_due_to_deadlock? 17: result 18: ensure 19: ::Spec::Runner.use original_options 20: end