vendor/scs/test/minunit.h in scs-0.3.1 vs vendor/scs/test/minunit.h in scs-0.3.2
- old
+ new
@@ -11,12 +11,17 @@
#define mu_assert(message, test) \
do { \
if (!(test)) \
return message; \
} while (0)
-#define mu_run_test(test) \
+#define mu_run_test(test) _mu_run_test(#test, test)
+
+#define _mu_run_test(name, test) \
do { \
+ scs_printf("*********************************************************\n"); \
+ scs_printf("Running test: %s\n", name); \
const char *message = test(); \
tests_run++; \
+ scs_printf("*********************************************************\n"); \
if (message) \
return message; \
} while (0)