From 2b519f42fec913763abd0d967301916e763e770a Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 15 Sep 2025 17:16:48 -0400 Subject: Better testing framework --- tests/test.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/test.h') diff --git a/tests/test.h b/tests/test.h index e4123bf..59807d1 100644 --- a/tests/test.h +++ b/tests/test.h @@ -1,6 +1,5 @@ #include - #if __GNUC__ >= 6 #define ATTRIBUTE_PRINTF(fmt, args) __attribute__ ((format(printf, fmt, args))) #else @@ -14,6 +13,8 @@ #endif void test_fail(PRINTF_FORMAT_STRING const char *, ...) ATTRIBUTE_PRINTF(1, 2); -void test_parsing(const char *test_dir); -void test_errors(const char *test_dir); -void test_location(const char *test_dir); +void test_parsing(void); +void test_errors(void); +void test_location(void); +char **list_dir(const char *dir, const char *suffix); +void free_listing(char **listing); -- cgit v1.2.3