diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-07-31 12:46:15 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-07-31 12:46:34 +0900 |
commit | e83ec207cd5fda973c41d6629d8504b515522b12 (patch) | |
tree | 243f75c942c50e620c59dbb27c95eaeb49f8f8d3 /tool | |
parent | 816e5055c90de327d99fe7f1d2cc4cfe86acd887 (diff) |
add debug code
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/minitest/unit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb index d922a5fc41..2080b26af3 100644 --- a/tool/lib/minitest/unit.rb +++ b/tool/lib/minitest/unit.rb @@ -984,6 +984,15 @@ module MiniTest def location e # :nodoc: last_before_assertion = "" + + # debug https://ci.appveyor.com/project/ruby/ruby/builds/26358355/job/27sp43hbqwqetqu0 + # TODO: remove it + if e.backtrace == nil + STDERR.puts e.inspect + STDERR.puts e.class.ancestors + raise e.inspect + end + e.backtrace.reverse_each do |s| break if s =~ /in .(assert|refute|flunk|pass|fail|raise|must|wont)/ last_before_assertion = s |