4 /* List of unit tests. */
10 /* Prototype a function run_<NAME> for each of the unit tests. */
11 #define UNIT_TEST(NAME) void run_##NAME(void);
15 void unit_fail_function(const char *function, const char *msg, ...)
16 __attribute__((format(printf, 2, 3)));
17 #define unit_fail(...) unit_fail_function(__func__, __VA_ARGS__)
19 int unit_failed(void);