1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Applying fix #20430: Making tests more verbose.

This commit is contained in:
micah 2007-07-28 18:28:18 -07:00
parent bceb91e7a8
commit 01346093a8
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-07-16 Joshua David Williams <yurimxpxman@gmail.com>
* test.h: tests made more verbose; now displays the name
of each test run.
2007-07-05 Micah Cowan <micah@cowan.name>
* cmpt.c, connect.c, connect.h, convert.c, convert.h:

View File

@ -31,8 +31,14 @@ so, delete this exception statement from your version. */
/* from MinUnit */
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
#define mu_run_test(test) do { const char *message = test(); tests_run++; \
if (message) return message; } while (0)
#define mu_run_test(test) \
do { \
puts("RUNNING TEST " #test "..."); \
const char *message = test(); \
tests_run++; \
if (message) return message; \
puts("PASSED\n"); \
} while (0)
extern int tests_run;