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 def run
fork do fork do
begin killer = @killer.new(strategy, mutation)
killer = @killer.new(strategy, mutation) exit(killer.success? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
exit(killer.success? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
rescue
exit(CLI::EXIT_FAILURE)
end
end end
status = Process.wait2.last status = Process.wait2.last