aboutsummaryrefslogtreecommitdiffstats
path: root/vasprintf.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-12 21:35:12 +0200
committerMattias Andrée <maandree@kth.se>2018-08-12 21:35:12 +0200
commit93b8428b5812191177c790ea9ffb9158d5a296b4 (patch)
tree8e43220208a7e3b4780a49b8278e731f3b5fcbbf /vasprintf.c
parentAdd DONT_DEFINE_CLOCK_MONOTONIC_RAW (diff)
downloadlibsimple-93b8428b5812191177c790ea9ffb9158d5a296b4.tar.gz
libsimple-93b8428b5812191177c790ea9ffb9158d5a296b4.tar.bz2
libsimple-93b8428b5812191177c790ea9ffb9158d5a296b4.tar.xz
Add tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'vasprintf.c')
-rw-r--r--vasprintf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/vasprintf.c b/vasprintf.c
index 59fb190..9ce1998 100644
--- a/vasprintf.c
+++ b/vasprintf.c
@@ -24,3 +24,15 @@ fail:
*strp = NULL;
return -1;
}
+
+
+#ifdef TEST
+#include <assert.h>
+
+int
+main(void)
+{
+ return 0; /* Tested via libsimple_asprintf */
+}
+
+#endif