[ruby/openssl] Stop AutoRunner with test-unit

https://github.com/ruby/openssl/commit/0d4cd8b9ca
This commit is contained in:
Hiroshi SHIBATA 2023-01-04 21:02:10 +09:00
parent 837ef8911c
commit 1f2fef1f9a
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -249,6 +249,7 @@ module Test
out.puts "#{token}<error>", [Marshal.dump($!)].pack('m'), "#{token}</error>", "#{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)