Commit 0ebac028 authored by Kouhei Sutou's avatar Kouhei Sutou

Skip backtrace related tests when backtrace isn't available

parent a561bdb2
......@@ -373,7 +373,17 @@ assert('Raise in ensure') do
end
end
def backtrace_avaialble?
begin
raise "XXX"
rescue => exception
not exception.backtrace.empty?
end
end
assert('GC in rescue') do
skip "backtrace isn't avaialble" unless backtrace_avaialble?
line = nil
begin
[1].each do
......@@ -391,6 +401,8 @@ assert('GC in rescue') do
end
assert('Method call in rescue') do
skip "backtrace isn't avaialble" unless backtrace_avaialble?
line = nil
begin
[1].each do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment