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 committed Aug 11, 2016
1 parent 6154db2 commit 718391d
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 718391d

Please sign in to comment.