Singnal killer status NOT success status

success depends on mutation type!
This commit is contained in:
Markus Schirp 2013-07-05 00:20:45 +02:00
parent b898917219
commit 13719eb0d3
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ module Mutant
def run
pid = fork do
killer = @killer.new(strategy, mutation)
exit(killer.success? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
exit(killer.killed? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
end
status = Process.wait2(pid).last

View file

@ -20,9 +20,9 @@ module Mutant
# TODO: replace with real streams from configuration
require 'stringio'
null = StringIO.new
args = command_line_arguments
argv = command_line_arguments
begin
!::RSpec::Core::Runner.run(args, null, null).zero?
!::RSpec::Core::Runner.run(argv, null, null).zero?
rescue StandardError
true
end