From 969bf523b7039c7038b66edde5776278c27941ac Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 14 Sep 2025 22:08:22 -0400 Subject: Start tests --- tests/test.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/test.h (limited to 'tests/test.h') diff --git a/tests/test.h b/tests/test.h new file mode 100644 index 0000000..5e0b8e5 --- /dev/null +++ b/tests/test.h @@ -0,0 +1,17 @@ +#include + + +#if __GNUC__ >= 6 +#define ATTRIBUTE_PRINTF(fmt, args) __attribute__ ((format(printf, fmt, args))) +#else +#define ATTRIBUTE_PRINTF(fmt, args) +#endif + +#if _MSC_VER >= 1600 +#define PRINTF_FORMAT_STRING _Printf_format_string_ +#else +#define PRINTF_FORMAT_STRING +#endif + +void test_fail(PRINTF_FORMAT_STRING const char *, ...) ATTRIBUTE_PRINTF(1, 2); +void test_parsing(const char *test_dir); -- cgit v1.2.3