aboutsummaryrefslogtreecommitdiffstats
path: root/doubletotimespec.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doubletotimespec.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/doubletotimespec.c b/doubletotimespec.c
index a71d662..a104b37 100644
--- a/doubletotimespec.c
+++ b/doubletotimespec.c
@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
+#ifndef TEST
void
@@ -30,3 +31,15 @@ libsimple_doubletotimespec(struct timespec *ts, double d)
ts->tv_nsec += 1000000000L;
}
}
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0; /* Tested in libsimple.c */
+}
+
+#endif