summaryrefslogtreecommitdiffhomepage
path: root/test
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 /test
parent49f0da682180f3623c173075c498694b1d21d585 (diff)
downloadmruby-c146e81c4ae318697d9f67a25e633dd071dfefd4.tar.gz
mruby-c146e81c4ae318697d9f67a25e633dd071dfefd4.zip
Disable tests on backtraces w/ unknown line numbers
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index c9afeb61a..6f517a5c3 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -382,7 +382,8 @@ def backtrace_available?
begin
raise "XXX"
rescue => exception
- not exception.backtrace.empty?
+ return false if exception.backtrace.empty?
+ not exception.backtrace[0].include?("unknown")
end
end