aboutsummaryrefslogtreecommitdiffstats
path: root/strtotimespec.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-28 10:41:36 +0200
committerMattias Andrée <maandree@kth.se>2018-08-28 10:41:36 +0200
commit60513cb5508a8197f5219dc3d06c0331c99863a6 (patch)
tree210f152018f18646c1f0cbca21602875562366bb /strtotimespec.c
parentFix vputenvf (diff)
downloadlibsimple-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 'strtotimespec.c')
-rw-r--r--strtotimespec.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/strtotimespec.c b/strtotimespec.c
index 1e6e8d1..bd28260 100644
--- a/strtotimespec.c
+++ b/strtotimespec.c
@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
+#ifndef TEST
int
@@ -142,3 +143,15 @@ overflow:
errno = ERANGE;
return -1;
}
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif