Rocco Rutte:
[apps/madmutt.git] / test / test_muttng.h
index aad4ccc..5d70316 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef TEST_MUTTNG__H
 
-#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
+#define mu_assert(message, test) do { asserts_run++; if (!(test)) return message; } while (0)
 #define mu_run_test(test) do { char *message = test(); \
                                tests_run++; \
                                if (message) { \
@@ -8,5 +8,6 @@
                                } \
                              } while (0)
 extern int tests_run;
+extern int asserts_run;
 
 #endif