Skip to content

Commit

Permalink
Add test for PR #17803
Browse files Browse the repository at this point in the history
The PR fixes jl_static_show for bitstypes

(cherry picked from commit 718391d)
ref #17961

Change test to Int128(-1)

(cherry picked from commit 462a1eb)
  • Loading branch information
ranjanan authored and tkelman committed Sep 13, 2016
1 parent 4247e81 commit 9b7d308
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 @@ -333,3 +333,11 @@ let cmd = AbstractString[]
end

@windows_only ENV["PATH"] = oldpath

# 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, Int128(-1))
@async close(p.in)
@test readstring(p.out) == "Int128(0xffffffffffffffffffffffffffffffff)"
end

0 comments on commit 9b7d308

Please sign in to comment.