1 /* Timer test using the monotonic clock. */
6 #if defined CLOCK_MONOTONIC && defined _POSIX_MONOTONIC_CLOCK
8 # define TEST_CLOCK CLOCK_MONOTONIC
9 # define TEST_CLOCK_MISSING(clock) \
10 (setup_test () ? "CLOCK_MONOTONIC" : NULL)
17 if (sysconf (_SC_MONOTONIC_CLOCK) <= 0)
20 /* The user-level timers implementation doesn't support CLOCK_MONOTONIC,
21 even though sysconf claims it will. */
23 if (timer_create (TEST_CLOCK, NULL, &t) != 0)
25 printf ("timer_create: %m\n");
33 # include "tst-timer4.c"
36 # define TEST_FUNCTION 0
37 # include "../test-skeleton.c"