From 6a96062153267cb1ddbd5b5446edf8d062ae5d35 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 23 Jun 2013 17:27:45 -0700 Subject: [PATCH] Fix Mutant::Killer::Forked#run to return true only on a successful exit --- config/flay.yml | 2 +- lib/mutant/killer/forked.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/flay.yml b/config/flay.yml index 9a4f65e2..48ca586b 100644 --- a/config/flay.yml +++ b/config/flay.yml @@ -1,3 +1,3 @@ --- threshold: 16 -total_score: 609 +total_score: 614 diff --git a/lib/mutant/killer/forked.rb b/lib/mutant/killer/forked.rb index 98b85db0..e93cd19c 100644 --- a/lib/mutant/killer/forked.rb +++ b/lib/mutant/killer/forked.rb @@ -36,7 +36,7 @@ module Mutant end status = Process.wait2(pid).last - status.exitstatus.zero? + status.exited? && status.success? end end # Forked