summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-01-08 12:56:36 +0900
committeraycabta <aycabta@gmail.com>2021-01-08 13:25:18 +0900
commit559f844bf4a607eb94ab16817ee6f9fcfb0d54bd (patch)
treeddaa130a57015cc4ae2222d17a1de5e175e32630
parent111fddd5437c0d2d6755f8aa474da4b54f89bc44 (diff)
irb: Drop lines from backtrace for tests in Ruby repository
-rw-r--r--lib/irb/workspace.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb
index 5a3a4bc020..c6c328e7b5 100644
--- a/lib/irb/workspace.rb
+++ b/lib/irb/workspace.rb
@@ -128,6 +128,7 @@ EOF
def filter_backtrace(bt)
return nil if bt =~ /\/irb\/.*\.rb/
return nil if bt =~ /\/irb\.rb/
+ return nil if bt =~ /tool\/lib\/.*\.rb|runner\.rb/ # for tests in Ruby repository
case IRB.conf[:CONTEXT_MODE]
when 1
return nil if bt =~ %r!/tmp/irb-binding!