diff --git a/test/spawn.jl b/test/spawn.jl index ad672b85cddbd..ee6d2b7691bcc 100644 --- a/test/spawn.jl +++ b/test/spawn.jl @@ -228,7 +228,7 @@ end let out = Pipe(), proc = run(pipeline(`$exename --startup-file=no -e 'println(getpid())`, stdout=IOContext(out,stdout)), wait=false) pid = getpid(proc) close(out.in) - @test parse(Int, read(out, String)) == pid + @test parse(Int32, read(out, String)) === pid @test success(proc) @test_throws ErrorException getpid(proc) end