summaryrefslogtreecommitdiff
path: root/test/test_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_log.c')
-rw-r--r--test/test_log.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_log.c b/test/test_log.c
new file mode 100644
index 00000000..55e07e5c
--- /dev/null
+++ b/test/test_log.c
@@ -0,0 +1,17 @@
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "test.h"
+
+void die(const char *fmt, ...)
+{
+ va_list va;
+
+ va_start(va, fmt);
+ vfprintf(stderr, fmt, va);
+ va_end(va);
+
+ exit(1);
+}
+