test: switch to SOCK_STREAM for the test sockets

SOCK_DGRAM gives us free message framing but the sockets we'll likely deal
with (or at least *have* to handle) are stream. This was a leftover anyway
from some debug testing.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-08-07 16:56:10 +10:00
parent 427d58a664
commit 626a13268e

View file

@ -71,7 +71,7 @@ peck_new(void)
struct peck *peck = peck_create(NULL);
int sv[2];
int rc = socketpair(AF_UNIX, SOCK_DGRAM|SOCK_NONBLOCK|SOCK_CLOEXEC, 0, sv);
int rc = socketpair(AF_UNIX, SOCK_STREAM|SOCK_NONBLOCK|SOCK_CLOEXEC, 0, sv);
munit_assert_int(rc, ==, 0);
struct ei *ei = ei_new(NULL);