Mercurial > hg > th-libs
changeset 551:2fbf5c2a662c
Add few comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 03 Jan 2020 08:15:10 +0200 |
parents | 1d7a85b59a16 |
children | 22f6204c4208 |
files | tests.c |
diffstat | 1 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests.c Tue Dec 31 06:28:28 2019 +0200 +++ b/tests.c Fri Jan 03 08:15:10 2020 +0200 @@ -25,15 +25,24 @@ typedef struct { char *header; - BOOL shown, failed; + BOOL + shown, // Has test result value been shown? + failed; // Did the test fail? (used by some tests to show extra info) } test_ctx; -// Globals -int tests_failed, tests_passed, tests_total, sets_total, sets_nenabled; +// Global variables +int tests_failed, // Total number of tests failed + tests_passed, // Total number of tests passed + tests_total, // Total number of tests RUN + sets_total, // Number of test sets + sets_nenabled; // Number of test sets enabled + int sets_enabled[SET_MAX_TESTS]; -char buf1[SET_BUF_SIZE_2], buf2[SET_BUF_SIZE_2]; +char buf1[SET_BUF_SIZE_2], + buf2[SET_BUF_SIZE_2]; + int optFlags = TST_ALL;