Lines Matching refs:res
11 int res; in ZTEST_USER_F() local
17 res = zsock_send(fixture->sv[i], "x", 1, 0); in ZTEST_USER_F()
18 zassert_equal(res, 1, "send() failed: %d", errno); in ZTEST_USER_F()
22 res = zsock_fcntl(fixture->sv[i], F_GETFL, 0); in ZTEST_USER_F()
23 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
25 res = zsock_fcntl(fixture->sv[i], F_SETFL, res | O_NONBLOCK); in ZTEST_USER_F()
26 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
29 res = zsock_send(fixture->sv[i], "x", 1, 0); in ZTEST_USER_F()
30 zassert_equal(res, -1, "expected send to fail"); in ZTEST_USER_F()
38 int res; in ZTEST_USER_F() local
43 res = zsock_fcntl(fixture->sv[i], F_GETFL, 0); in ZTEST_USER_F()
44 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
46 res = zsock_fcntl(fixture->sv[i], F_SETFL, res | O_NONBLOCK); in ZTEST_USER_F()
47 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
50 res = zsock_recv(fixture->sv[i], &c, 1, 0); in ZTEST_USER_F()
51 zassert_equal(res, -1, "expected recv() to fail"); in ZTEST_USER_F()