From b496578758faa67490cf196b70e7cfbfd2ff7f3d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 5 Jan 2023 08:16:24 +0900 Subject: Skip Test::Unit::AutoRunner logic in ruby/ruby repository --- tool/lib/core_assertions.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 6c09c7cab6..fdae050bb5 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -248,8 +248,11 @@ module Test at_exit { out.puts "#{token}", [Marshal.dump($!)].pack('m'), "#{token}", "#{token}assertions=#{self._assertions}" } - Test::Unit::Runner.class_variable_set(:@@stop_auto_run, true) if defined?(Test::Unit::Runner) - Test::Unit::AutoRunner.need_auto_run = false if defined?(Test::Unit::AutoRunner) + if defined?(Test::Unit::Runner) + Test::Unit::Runner.class_variable_set(:@@stop_auto_run, true) + elsif defined?(Test::Unit::AutoRunner) + Test::Unit::AutoRunner.need_auto_run = false + end end def assert_separately(args, file = nil, line = nil, src, ignore_stderr: nil, **opt) -- cgit v1.2.1