conformance fixes
[libc-test.git] / src / functional / clock_gettime.c
blob7951b11b5a82c2737bb3f20261b9d8ee102cbddc
1 #include <time.h>
2 #include <errno.h>
3 #include <string.h>
4 #include "test.h"
6 #define TEST(c, ...) \
7 ( (c) || (t_error(#c " failed: " __VA_ARGS__),0) )
9 int main()
11 struct timespec ts;
12 TEST(clock_gettime(CLOCK_REALTIME, &ts) == 0 && errno == 0, "%s\n", strerror(errno));
13 return t_status;