summaryrefslogtreecommitdiff
path: root/tests/helpers.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-12-21 20:58:51 -0600
committersanine <sanine.not@pm.me>2021-12-21 20:58:51 -0600
commit1e3ca08048542a29d04ecc2c1dbc0e5ba8421c27 (patch)
tree95e5864e42c2407bad18fc43818119e60c123f85 /tests/helpers.c
parentb712a7ac4c6a7a8bb1d81d0adad8f98084b4d2fe (diff)
strip things down in preparation for refactor
Diffstat (limited to 'tests/helpers.c')
-rw-r--r--tests/helpers.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/helpers.c b/tests/helpers.c
new file mode 100644
index 0000000..42a0724
--- /dev/null
+++ b/tests/helpers.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+#include "lily-test.h"
+#include "tests.h"
+
+void run_test(const char *name, const char* (*test)())
+{
+ printf("%s... ", name);
+ const char *result = test();
+ if (result != 0) {
+ printf("FAILED (%s)\n", result);
+ }
+ else
+ printf("OK\n");
+}