Skip to content

Sockets test fail on FreeBSD 12 #41942

Closed
@ararslan

Description

@ararslan

It seems #40783 broke one of the Sockets tests on FreeBSD 12:

@test !isopen(P) # eof test should have closed this by now

Following along the steps taken in the tests,

p = Pipe()
Base.link_pipe!(p)
write(p, "hello")
read(p, Char)
read(p, Char)
@async begin
    write(p, "w")
    while p.out.status != Base.StatusOpen
        yield()
    end
    close(p.in)
end
readuntil(p, 'w')
eof(p)

you'll get true from the final EOF check on any platform. However, p.out.status is Base.StatusEOF on FreeBSD with and Base.StatusClosed on macOS. Prior to #40783, p.out.status was Base.StatusClosed on both platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorsystem:freebsdAffects only FreeBSD

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions