Skip to content

Commit

Permalink
Skip Test::Unit::AutoRunner logic in ruby/ruby repository
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 4, 2023
1 parent 1f2fef1 commit b496578
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tool/lib/core_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,11 @@ def separated_runner(token, out = nil)
at_exit {
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)
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)
Expand Down

0 comments on commit b496578

Please sign in to comment.