Fix Mutant::Killer::Forked#run to return true only on a successful exit
This commit is contained in:
parent
3f83290538
commit
6a96062153
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
threshold: 16
|
threshold: 16
|
||||||
total_score: 609
|
total_score: 614
|
||||||
|
|
|
@ -36,7 +36,7 @@ module Mutant
|
||||||
end
|
end
|
||||||
|
|
||||||
status = Process.wait2(pid).last
|
status = Process.wait2(pid).last
|
||||||
status.exitstatus.zero?
|
status.exited? && status.success?
|
||||||
end
|
end
|
||||||
|
|
||||||
end # Forked
|
end # Forked
|
||||||
|
|
Loading…
Add table
Reference in a new issue