HomeFreeBSD

Fix the regression test for PR 181741.

Description

Fix the regression test for PR 181741.

With r337328, the test hangs becase the sendmsg() call will block until
the receive buffer is at least partially drained. Fix the problem by
using a non-blocking socket and allowing short writes. Also assert
that a SCM_CREDS message was received if one was expected.

PR: 181741
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D16516

Details

Provenance
markjAuthored on Aug 4 2018, 8:29 PM
Parents
rG5b0480f2cca0: Don't check rcv sockbuf limits when sending on a unix stream socket.
Branches
Unknown
Tags
Unknown

Event Timeline