diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-12-07 14:01:11 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-12-07 14:01:11 +0000 |
commit | 37756a838922d080448793aa5ab5e90c5aba78c1 (patch) | |
tree | 043efc2dbba1e4c350c65704af85bd5a628ea561 /rt/tst-timer5.c | |
parent | 3b1744f208165b87fb8cd286d39b395c56257ee5 (diff) |
Updated to fedora-glibc-20041207T1331
Diffstat (limited to 'rt/tst-timer5.c')
-rw-r--r-- | rt/tst-timer5.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rt/tst-timer5.c b/rt/tst-timer5.c new file mode 100644 index 0000000000..2683021eda --- /dev/null +++ b/rt/tst-timer5.c @@ -0,0 +1,14 @@ +/* Timer test using the monotonic clock. */ + +#include <time.h> +#include <unistd.h> + +#if defined CLOCK_MONOTONIC && defined _POSIX_MONOTONIC_CLOCK +# define TEST_CLOCK CLOCK_MONOTONIC +# define TEST_CLOCK_MISSING(clock) \ + (sysconf (_SC_MONOTONIC_CLOCK) > 0 ? NULL : #clock) +# include "tst-timer4.c" +#else +# define TEST_FUNCTION 0 +# include "../test-skeleton.c" +#endif |