Skip to content

Commit 59ae37b

Browse files
committed
Test for #19655
1 parent db6f96b commit 59ae37b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/stacktraces.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,12 @@ let ctestptr = cglobal((:ctest, "libccalltest")),
124124
@test ctest[1].from_c
125125
@test ctest[1].pointer === UInt64(ctestptr)
126126
end
127+
128+
# #19655
129+
let
130+
# not in a `catch`, so should return an empty StackTrace
131+
st = stacktrace(empty!(backtrace()))
132+
println(st)
133+
@test isempty(st)
134+
@test isa(st, StackTrace)
135+
end

0 commit comments

Comments
 (0)