diff --git a/lib/simplecov/defaults.rb b/lib/simplecov/defaults.rb index e8ca7c2b..51a2f261 100644 --- a/lib/simplecov/defaults.rb +++ b/lib/simplecov/defaults.rb @@ -40,6 +40,7 @@ SimpleCov::CommandGuesser.original_run_command = "#{$0} #{ARGV.join(" ")}" at_exit do + @exit_status = nil if $! # was an exception thrown? # if it was a SystemExit, use the accompanying status