From 718391db9ec76d4a12c128d2ae6165ad90a1fb8c Mon Sep 17 00:00:00 2001 From: ranjanan Date: Thu, 11 Aug 2016 12:11:05 +0530 Subject: [PATCH] Add test for PR #17803 The PR fixes jl_static_show for bitstypes --- test/spawn.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/spawn.jl b/test/spawn.jl index 21ce279b5eb3e..38682d22d4604 100644 --- a/test/spawn.jl +++ b/test/spawn.jl @@ -428,3 +428,11 @@ if is_unix() end end end + +# Test for PR 17803 +let p=Pipe() + Base.link_pipe(p; julia_only_read=true, julia_only_write=true) + ccall(:jl_static_show, Void, (Ptr{Void}, Any), p.in, "world") + @async close(p.in) + @test readstring(p.out) == "\"world\"" +end