Lines Matching refs:sd_event_now
216 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0); in test_basic_one()
282 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0); in test_basic_one()
310 TEST(sd_event_now) { in TEST() argument
315 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0); in TEST()
316 assert_se(sd_event_now(e, CLOCK_REALTIME, &event_now) > 0); in TEST()
317 assert_se(sd_event_now(e, CLOCK_REALTIME_ALARM, &event_now) > 0); in TEST()
318 assert_se(sd_event_now(e, CLOCK_BOOTTIME, &event_now) > 0); in TEST()
319 assert_se(sd_event_now(e, CLOCK_BOOTTIME_ALARM, &event_now) > 0); in TEST()
320 assert_se(sd_event_now(e, -1, &event_now) == -EOPNOTSUPP); in TEST()
321 assert_se(sd_event_now(e, 900 /* arbitrary big number */, &event_now) == -EOPNOTSUPP); in TEST()
325 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0); in TEST()
326 assert_se(sd_event_now(e, CLOCK_REALTIME, &event_now) == 0); in TEST()
327 assert_se(sd_event_now(e, CLOCK_REALTIME_ALARM, &event_now) == 0); in TEST()
328 assert_se(sd_event_now(e, CLOCK_BOOTTIME, &event_now) == 0); in TEST()
329 assert_se(sd_event_now(e, CLOCK_BOOTTIME_ALARM, &event_now) == 0); in TEST()
330 assert_se(sd_event_now(e, -1, &event_now) == -EOPNOTSUPP); in TEST()
331 assert_se(sd_event_now(e, 900 /* arbitrary big number */, &event_now) == -EOPNOTSUPP); in TEST()