Correctly propagnate exit status of forking killers
This commit is contained in:
parent
244dcfedbd
commit
939e25cb4a
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ module Mutant
|
|||
|
||||
def run
|
||||
fork do
|
||||
@killer.new(strategy, mutation)
|
||||
killer = @killer.new(strategy, mutation)
|
||||
Kernel.exit(killer.fail? ? 1 : 0)
|
||||
end
|
||||
|
||||
status = Process.wait2.last
|
||||
|
|
Loading…
Add table
Reference in a new issue