Do not rescue arbitrary killer exceptions

This commit is contained in:
Markus Schirp 2013-06-23 22:22:35 +02:00
parent 612d3282ac
commit 47159696e8

View file

@ -31,12 +31,8 @@ module Mutant
#
def run
fork do
begin
killer = @killer.new(strategy, mutation)
exit(killer.success? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
rescue
exit(CLI::EXIT_FAILURE)
end
killer = @killer.new(strategy, mutation)
exit(killer.success? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
end
status = Process.wait2.last