Lines Matching refs:res
10 int res; in ZTEST_USER_F() local
13 res = zsock_close(fixture->sv[i]); in ZTEST_USER_F()
14 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
17 res = zsock_send(fixture->sv[(!i) & 1], "x", 1, 0); in ZTEST_USER_F()
18 zassert_equal(res, -1, "expected send() to fail"); in ZTEST_USER_F()
19 zassert_equal(res, -1, "errno: expected: EPIPE actual: %d", in ZTEST_USER_F()
22 res = zsock_close(fixture->sv[(!i) & 1]); in ZTEST_USER_F()
23 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
26 res = zsock_socketpair(AF_UNIX, SOCK_STREAM, 0, fixture->sv); in ZTEST_USER_F()
27 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER_F()
33 int res; in ZTEST_USER_F() local
42 res = zsock_send(fixture->sv[i], "xx", 2, 0); in ZTEST_USER_F()
43 zassert_not_equal(res, -1, "send() failed: %d", errno); in ZTEST_USER_F()
44 zassert_equal(res, 2, "write() failed to write 2 bytes"); in ZTEST_USER_F()
46 res = zsock_close(fixture->sv[i]); in ZTEST_USER_F()
47 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
51 res = zsock_recv(fixture->sv[(!i) & 1], xx, sizeof(xx), 0); in ZTEST_USER_F()
52 zassert_not_equal(res, -1, "read() failed: %d", errno); in ZTEST_USER_F()
53 zassert_equal(res, 2, "expected to read 2 bytes but read %d", in ZTEST_USER_F()
54 res); in ZTEST_USER_F()
56 res = zsock_recv(fixture->sv[(!i) & 1], xx, sizeof(xx), 0); in ZTEST_USER_F()
57 zassert_equal(res, 0, "expected read() to succeed but read 0 bytes"); in ZTEST_USER_F()
59 res = zsock_close(fixture->sv[(!i) & 1]); in ZTEST_USER_F()
60 zassert_equal(res, 0, "close(fixture->sv[%u]) failed: %d", i, errno); in ZTEST_USER_F()
63 res = zsock_socketpair(AF_UNIX, SOCK_STREAM, 0, fixture->sv); in ZTEST_USER_F()
64 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER_F()