From 13719eb0d3e898a08459ed2adc9b39ee87d6e471 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 5 Jul 2013 00:20:45 +0200 Subject: [PATCH] Singnal killer status NOT success status success depends on mutation type! --- lib/mutant/killer/forked.rb | 2 +- lib/mutant/killer/rspec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mutant/killer/forked.rb b/lib/mutant/killer/forked.rb index e93cd19c..19565ffd 100644 --- a/lib/mutant/killer/forked.rb +++ b/lib/mutant/killer/forked.rb @@ -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 diff --git a/lib/mutant/killer/rspec.rb b/lib/mutant/killer/rspec.rb index a6e202c7..4935dea5 100644 --- a/lib/mutant/killer/rspec.rb +++ b/lib/mutant/killer/rspec.rb @@ -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