diff options
author | Mattias Andrée <maandree@kth.se> | 2018-08-28 10:41:36 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-08-28 10:41:36 +0200 |
commit | 60513cb5508a8197f5219dc3d06c0331c99863a6 (patch) | |
tree | 210f152018f18646c1f0cbca21602875562366bb /recvfrom_timestamped.c | |
parent | Fix vputenvf (diff) | |
download | libsimple-60513cb5508a8197f5219dc3d06c0331c99863a6.tar.gz libsimple-60513cb5508a8197f5219dc3d06c0331c99863a6.tar.bz2 libsimple-60513cb5508a8197f5219dc3d06c0331c99863a6.tar.xz |
Add test function to all .c files
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | recvfrom_timestamped.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recvfrom_timestamped.c b/recvfrom_timestamped.c index f5f8e53..49e8e3f 100644 --- a/recvfrom_timestamped.c +++ b/recvfrom_timestamped.c @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include "libsimple.h" +#ifndef TEST ssize_t @@ -55,3 +56,15 @@ libsimple_recvfrom_timestamped(int fd, void *restrict buf, size_t n, int flags, return r; } + + +#else +#include "test.h" + +int +main(void) +{ + return 0; +} + +#endif |