Skip to content

Commit

Permalink
Add test for PR JuliaLang#17803
Browse files Browse the repository at this point in the history
The PR fixes jl_static_show for bitstypes
  • Loading branch information
ranjanan authored and mfasi committed Sep 5, 2016
1 parent afa3354 commit 1a25969
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/spawn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1a25969

Please sign in to comment.