Count exception between mutation insertion and spec run as kill

This commit is contained in:
Markus Schirp 2013-01-05 22:58:08 +01:00
parent c745e65683
commit c0fa278f19
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,7 @@
# v0.2.13 2013-01-05
* [fixed] Capture failures that occur in the window between mutation insertion and spec run as kills
# v0.2.12 2013-01-03
* [fixed] Do not crash when trying to load methods from precompiled ruby under rbx

View file

@ -41,8 +41,12 @@ module Mutant
#
def run
fork do
killer = @killer.new(strategy, mutation)
Kernel.exit(killer.fail? ? 1 : 0)
begin
killer = @killer.new(strategy, mutation)
Kernel.exit(killer.fail? ? 1 : 0)
rescue
Kernel.exit(1)
end
end
status = Process.wait2.last