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 4, 2017
1 parent db6f96b commit 59ae37b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/stacktraces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,12 @@ 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 = stacktrace(empty!(backtrace()))
println(st)
@test isempty(st)
@test isa(st, StackTrace)
end

0 comments on commit 59ae37b

Please sign in to comment.