repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
conformance fixes
[libc-test.git]
/
src
/
functional
/
clock_gettime.c
blob
7951b11b5a82c2737bb3f20261b9d8ee102cbddc
1
#include <time.h>
2
#include <errno.h>
3
#include <string.h>
4
#include
"test.h"
5
6
#define TEST(c, ...) \
7
( (c) || (t_error(#c
" failed: "
__VA_ARGS__),0) )
8
9
int
main
()
10
{
11
struct
timespec ts
;
12
TEST
(
clock_gettime
(
CLOCK_REALTIME
, &
ts
) ==
0
&&
errno
==
0
,
"%s
\n
"
,
strerror
(
errno
));
13
return
t_status
;
14
}