aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@gmail.com>2017-05-23 23:11:24 +0200
committerMichał Łyszczek <michal.lyszczek@gmail.com>2017-05-23 23:11:24 +0200
commitd6414205667ce2bb74375bba2cf56ca671901c54 (patch)
tree27147ca72ae90c9983a652b85995443147d86327
parent27abd8a2107cbbf000ef7c8c0506cf65d365e89b (diff)
downloadmtest-d6414205667ce2bb74375bba2cf56ca671901c54.tar.gz
mtest-d6414205667ce2bb74375bba2cf56ca671901c54.tar.bz2
mtest-d6414205667ce2bb74375bba2cf56ca671901c54.zip
Added support for many .c test files
-rw-r--r--mtest.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mtest.h b/mtest.h
index 4b0e40c..8831850 100644
--- a/mtest.h
+++ b/mtest.h
@@ -35,6 +35,20 @@
/* ==========================================================================
+ macro with extern declarations of variables defined by mt_defs(). This
+ macro should be called in any .c file, that uses mt_* function and does
+ not have mt_defs() called in.
+ ========================================================================== */
+
+
+#define mt_defs_ext() \
+ extern const char *curr_test; \
+ extern int mt_test_status; \
+ extern int mt_total_tests; \
+ extern int mt_total_failed;
+
+
+/* ==========================================================================
macro runs test 'f'. 'f' is just a function (without parenthesis ()).
========================================================================== */