ruby-changes:67883
From: Hiroshi <ko1@a...>
Date: Sat, 11 Sep 2021 08:48:27 +0900 (JST)
Subject: [ruby-changes:67883] 8ee38bdd7d (master): Removed duplicated autorun method
https://git.ruby-lang.org/ruby.git/commit/?id=8ee38bdd7d From 8ee38bdd7d44dd8e6b7d073349c1b7abbf1346a8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Wed, 8 Sep 2021 19:33:34 +0900 Subject: Removed duplicated autorun method --- tool/lib/test/unit.rb | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index ce470a7..44f3e11 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -1207,30 +1207,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L1207 end ## - # Registers Test::Unit::Runner to run tests at process exit - - def self.autorun - at_exit { - # don't run if there was a non-exit exception - next if $! and not $!.kind_of? SystemExit - - # the order here is important. The at_exit handler must be - # installed before anyone else gets a chance to install their - # own, that way we can be assured that our exit will be last - # to run (at_exit stacks). - exit_code = nil - - at_exit { - @@after_tests.reverse_each(&:call) - exit false if exit_code && exit_code != 0 - } - - exit_code = Test::Unit::Runner.new.run ARGV - } unless @@installed_at_exit - @@installed_at_exit = true - end - - ## # Returns the stream to use for output. def self.output @@ -1493,8 +1469,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L1469 raise end - class << self; undef autorun; end - @@stop_auto_run = false def self.autorun at_exit { -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/