ruby-changes:69457
From: Koichi <ko1@a...>
Date: Tue, 26 Oct 2021 17:07:19 +0900 (JST)
Subject: [ruby-changes:69457] 8a49c7e481 (master): Revert "introduce check code for mysterious EBADF"
https://git.ruby-lang.org/ruby.git/commit/?id=8a49c7e481 From 8a49c7e4812a3f6d027dac1a574f47f125886935 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 26 Oct 2021 11:55:42 +0900 Subject: Revert "introduce check code for mysterious EBADF" This reverts commit 7864efa105921eb3900c843126f2e0db02b9c6ae. --- tool/lib/test/unit/parallel.rb | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb index 544239921cb..b3a8957f26e 100644 --- a/tool/lib/test/unit/parallel.rb +++ b/tool/lib/test/unit/parallel.rb @@ -85,21 +85,8 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/parallel.rb#L85 Test::Unit::Runner.output = orig_stdout $stdin = orig_stdin if orig_stdin $stdout = orig_stdout if orig_stdout - - # To figure out which suite raises EBADF error. - begin - o.close if o && !o.closed? - rescue Exception => e - STDERR.puts "#{e} at #{suite.name} (o)" - raise - end - - begin - i.close if i && !i.closed? - rescue Exception => e - STDERR.puts "#{e} at #{suite.name} (i)" - raise - end + o.close if o && !o.closed? + i.close if i && !i.closed? end def run(args = []) # :nodoc: -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/