aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-11-09 15:20:52 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-11-09 15:20:52 +0900
commit50bc7e7e9f0da6b27db06ac063257de0b97ed9b3 (patch)
tree843ba96fe79179f0c24c8d9b637874bb2ee1b9f4 /tool
parent352887b731f02c42abf6b905cde1737cc2249290 (diff)
downloadruby-50bc7e7e9f0da6b27db06ac063257de0b97ed9b3.tar.gz
Add debug print
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2380788 ``` test_all #<Thread:0x000055b6c8e9fca8@/tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:42 run> terminated with exception (report_on_exception is true): <internal:pack>:134:in `pack': no implicit conversion of false into String (TypeError) from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:160:in `_report' from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:45:in `block in _run_suite' ```
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/test/unit/parallel.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb
index 12600676db..3fe76291c4 100644
--- a/tool/lib/test/unit/parallel.rb
+++ b/tool/lib/test/unit/parallel.rb
@@ -158,6 +158,8 @@ module Test
def _report(res, *args) # :nodoc:
@stdout.write(args.empty? ? "#{res}\n" : "#{res} #{args.pack("m0")}\n")
+ rescue TypeError => e
+ abort("#{e.inspect} in _report(#{res.inspect}, #{args.inspect})\n#{e.backtrace.join("\n")}")
end
def puke(klass, meth, e) # :nodoc: