Skip to content

Commit

Permalink
Test for #19655
Browse files Browse the repository at this point in the history
  • Loading branch information
iamed2 committed Jan 3, 2017
1 parent db6f96b commit 14dabf0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/stacktraces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,11 @@ let ctestptr = cglobal((:ctest, "libccalltest")),
@test ctest[1].from_c
@test ctest[1].pointer === UInt64(ctestptr)
end

# #19655
let
# not in a `catch`, so should return an empty StackTrace
st = catch_stacktrace()
@test isempty(st)
@test isa(st, StackFrame)
end

0 comments on commit 14dabf0

Please sign in to comment.