diff options
author | Michał Łyszczek <michal.lyszczek@gmail.com> | 2017-05-23 23:11:24 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@gmail.com> | 2017-05-23 23:11:24 +0200 |
commit | d6414205667ce2bb74375bba2cf56ca671901c54 (patch) | |
tree | 27147ca72ae90c9983a652b85995443147d86327 | |
parent | 27abd8a2107cbbf000ef7c8c0506cf65d365e89b (diff) | |
download | mtest-d6414205667ce2bb74375bba2cf56ca671901c54.tar.gz mtest-d6414205667ce2bb74375bba2cf56ca671901c54.tar.bz2 mtest-d6414205667ce2bb74375bba2cf56ca671901c54.zip |
Added support for many .c test files
-rw-r--r-- | mtest.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 ()). ========================================================================== */ |