Skip to content

Commit

Permalink
Skip when backtrace doesn't get
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Jan 14, 2017
1 parent 6f9cb74 commit 59d9f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mrbgems/mruby-kernel-ext/test/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
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)
Expand Down

0 comments on commit 59d9f31

Please sign in to comment.