From 1e3ca08048542a29d04ecc2c1dbc0e5ba8421c27 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 21 Dec 2021 20:58:51 -0600 Subject: strip things down in preparation for refactor --- tests/helpers.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/helpers.c (limited to 'tests/helpers.c') 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 + +#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"); +} -- cgit v1.2.1