]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the regression test for PR 181741.
authormarkj <markj@FreeBSD.org>
Sat, 4 Aug 2018 20:29:58 +0000 (20:29 +0000)
committermarkj <markj@FreeBSD.org>
Sat, 4 Aug 2018 20:29:58 +0000 (20:29 +0000)
commitbf90ae4b377cc30240bcebe6f5d96eee032b5b2c
treec4953ff42f1f2dbd0918dc432f5a2e61a37e0675
parent75b64fe9d978c90c233864ba0e7782e14733ebd5
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
tests/sys/kern/unix_passfd_test.c