Lines Matching refs:req

38 	struct timespec req = {};  in common_errors()  local
56 req = (struct timespec){.tv_sec = -1, .tv_nsec = 0}; in common_errors()
57 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
61 req = (struct timespec){.tv_sec = 0, .tv_nsec = -1}; in common_errors()
62 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
66 req = (struct timespec){.tv_sec = -1, .tv_nsec = -1}; in common_errors()
67 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
72 req = (struct timespec){.tv_sec = 0, .tv_nsec = 1000000000}; in common_errors()
73 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
82 req = (struct timespec){.tv_sec = 1, .tv_nsec = 1}; in common_errors()
83 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), 0); in common_errors()
85 zassert_equal(req.tv_sec, 1); in common_errors()
86 zassert_equal(req.tv_nsec, 1); in common_errors()
89 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, &rem), 0); in common_errors()
100 req = (struct timespec){.tv_sec = 0, .tv_nsec = 1}; in common_errors()
101 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, &req), 0); in common_errors()
103 zassert_equal(req.tv_sec, 0, "actual: %d expected: %d", req.tv_sec, 0); in common_errors()
104 zassert_equal(req.tv_nsec, 0, "actual: %d expected: %d", req.tv_nsec, 0); in common_errors()
115 struct timespec req = {}; in ZTEST() local
120 clock_gettime(CLOCK_MONOTONIC, &req); in ZTEST()
121 zassert_equal(clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &req, &rem), 0); in ZTEST()
126 clock_gettime(CLOCK_REALTIME, &req); in ZTEST()
127 zassert_equal(clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &req, &rem), 0); in ZTEST()
157 struct timespec req = {s, ns}; in common_lower_bound_check() local
161 r = select_nanosleep(selection, clock_id, flags, &req, &rem); in common_lower_bound_check()
166 zassert_equal(req.tv_sec, s, "actual: %d expected: %d", req.tv_sec, s); in common_lower_bound_check()
167 zassert_equal(req.tv_nsec, ns, "actual: %d expected: %d", req.tv_nsec, ns); in common_lower_bound_check()