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:
parent
bceb91e7a8
commit
01346093a8
@ -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>
|
2007-07-05 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* cmpt.c, connect.c, connect.h, convert.c, convert.h:
|
* cmpt.c, connect.c, connect.h, convert.c, convert.h:
|
||||||
|
10
src/test.h
10
src/test.h
@ -31,8 +31,14 @@ so, delete this exception statement from your version. */
|
|||||||
|
|
||||||
/* from MinUnit */
|
/* from MinUnit */
|
||||||
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
|
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
|
||||||
#define mu_run_test(test) do { const char *message = test(); tests_run++; \
|
#define mu_run_test(test) \
|
||||||
if (message) return message; } while (0)
|
do { \
|
||||||
|
puts("RUNNING TEST " #test "..."); \
|
||||||
|
const char *message = test(); \
|
||||||
|
tests_run++; \
|
||||||
|
if (message) return message; \
|
||||||
|
puts("PASSED\n"); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
extern int tests_run;
|
extern int tests_run;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user