ruby-changes:62419
From: Koichi <ko1@a...>
Date: Wed, 29 Jul 2020 18:47:49 +0900 (JST)
Subject: [ruby-changes:62419] ed22bf47cc (master): display stderr output even if core dump files
https://git.ruby-lang.org/ruby.git/commit/?id=ed22bf47cc From ed22bf47cc551bb26f17fbaebadd06d1ff2b8948 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Wed, 29 Jul 2020 18:45:39 +0900 Subject: display stderr output even if core dump files On btest, stderr messages are not displayed if core files are generated. There is no reason to skip it, so this patch display stderr and check core files. diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 56b4b12..94a90f5 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -261,6 +261,14 @@ rescue Exception => err https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L261 $stderr.print 'E' $stderr.puts if @verbose error err.message, message +ensure + begin + check_coredump + rescue CoreDumpError => err + $stderr.print 'E' + $stderr.puts if @verbose + error err.message, message + end end def show_limit(testsrc, opt = '', **argh) @@ -275,7 +283,6 @@ end https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L283 def assert_check(testsrc, message = '', opt = '', **argh) show_progress(message) { result = get_result_string(testsrc, opt, **argh) - check_coredump yield(result) } end @@ -453,7 +460,6 @@ def get_result_string(src, opt = '', **argh) https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L460 `#{@ruby} -W0 #{opt} #{filename}` ensure raise Interrupt if $? and $?.signaled? && $?.termsig == Signal.list["INT"] - raise CoreDumpError, "core dumped" if $? and $?.coredump? end else eval(src).to_s -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/