summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-proc-ext
diff options
context:
space:
mode:
authorfundamental <[email protected]>2021-03-30 20:21:44 -0400
committerfundamental <[email protected]>2021-03-30 20:26:10 -0400
commitc146e81c4ae318697d9f67a25e633dd071dfefd4 (patch)
treefc834917a4231e1b411165ff8720e516b6e11a42 /mrbgems/mruby-proc-ext
parent49f0da682180f3623c173075c498694b1d21d585 (diff)
downloadmruby-c146e81c4ae318697d9f67a25e633dd071dfefd4.tar.gz
mruby-c146e81c4ae318697d9f67a25e633dd071dfefd4.zip
Disable tests on backtraces w/ unknown line numbers
Diffstat (limited to 'mrbgems/mruby-proc-ext')
-rw-r--r--mrbgems/mruby-proc-ext/test/proc.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/mruby-proc-ext/test/proc.rb b/mrbgems/mruby-proc-ext/test/proc.rb
index a6321d371..113afcc5e 100644
--- a/mrbgems/mruby-proc-ext/test/proc.rb
+++ b/mrbgems/mruby-proc-ext/test/proc.rb
@@ -7,6 +7,9 @@ def enable_debug_info?
raise
rescue => e
@enable_debug_info = !e.backtrace.empty?
+ if(@enable_debug_info && e.backtrace[0].include?("(unknown)"))
+ @enable_debug_info = false
+ end
end
end