From 0d4cd8b9caa0638e1dde5a20911f9141947f9e17 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 4 Jan 2023 21:02:10 +0900 Subject: Stop AutoRunner with test-unit --- test/lib/core_assertions.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/lib/core_assertions.rb b/test/lib/core_assertions.rb index 7cd598b1..6c09c7ca 100644 --- a/test/lib/core_assertions.rb +++ b/test/lib/core_assertions.rb @@ -249,6 +249,7 @@ module Test 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) end def assert_separately(args, file = nil, line = nil, src, ignore_stderr: nil, **opt) -- cgit v1.2.3