From 9f83eeadf2311394d7809e60842f0026bd8e137d Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 8 Nov 2023 18:36:53 +0100 Subject: [PATCH] Use hard exit! in TimeoutAction --- lib/mspec/runner/actions/timeout.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mspec/runner/actions/timeout.rb b/lib/mspec/runner/actions/timeout.rb index a256fd4..1200926 100644 --- a/lib/mspec/runner/actions/timeout.rb +++ b/lib/mspec/runner/actions/timeout.rb @@ -48,7 +48,7 @@ def start show_backtraces if MSpec.subprocesses.empty? - exit 2 + exit! 2 else # Do not exit but signal the subprocess so we can get their output MSpec.subprocesses.each do |pid| @@ -81,7 +81,7 @@ def after(state = nil) if @fail STDERR.puts "\n\nThe last example #{@error_message}. See above for the subprocess stacktrace." - exit 2 + exit! 2 end end