Count exception between mutation insertion and spec run as kill
This commit is contained in:
parent
c745e65683
commit
c0fa278f19
2 changed files with 10 additions and 2 deletions
|
@ -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
|
# v0.2.12 2013-01-03
|
||||||
|
|
||||||
* [fixed] Do not crash when trying to load methods from precompiled ruby under rbx
|
* [fixed] Do not crash when trying to load methods from precompiled ruby under rbx
|
||||||
|
|
|
@ -41,8 +41,12 @@ module Mutant
|
||||||
#
|
#
|
||||||
def run
|
def run
|
||||||
fork do
|
fork do
|
||||||
killer = @killer.new(strategy, mutation)
|
begin
|
||||||
Kernel.exit(killer.fail? ? 1 : 0)
|
killer = @killer.new(strategy, mutation)
|
||||||
|
Kernel.exit(killer.fail? ? 1 : 0)
|
||||||
|
rescue
|
||||||
|
Kernel.exit(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
status = Process.wait2.last
|
status = Process.wait2.last
|
||||||
|
|
Loading…
Add table
Reference in a new issue