Skip to content

Commit 1fcc847

Browse files
authored
Add unit test for broken erroshow (#277)
1 parent 41d1897 commit 1fcc847

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ mktempdir() do d
258258
@test occursin(r"^CLIENT_RANDOM [0-9a-f]{64} [0-9a-f]{96}$", read(f, String))
259259
end
260260

261+
# Unit test for MBedTLS errorshow (#274)
262+
let buf = IOBuffer()
263+
Base.display_error(buf, try MbedTLS.mbed_err(1); catch err; err; end, nothing)
264+
@test occursin("Generic error", String(take!(buf)))
265+
end
266+
261267
let
262268
include("clntsrvr/clntsrvr.jl")
263269
end

0 commit comments

Comments
 (0)