mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Skip when backtrace doesn't get
This commit is contained in:
@@ -4,6 +4,8 @@ assert('Kernel.fail, Kernel#fail') do
|
||||
end
|
||||
|
||||
assert('Kernel.caller, Kernel#caller') do
|
||||
skip "backtrace isn't available" if caller(0).empty?
|
||||
|
||||
c = Class.new do
|
||||
def foo(*args)
|
||||
caller(*args)
|
||||
|
||||
Reference in New Issue
Block a user