Commit 79ed9491 authored by Pekka Pessi's avatar Pekka Pessi

tstdef.h: output of TEST() now prints values as signed, null as NULL.

darcs-hash:20061012131417-65a35-34c4611c0133fdad000e9aecacdaa669054cb625.gz
parent 0043048b
......@@ -254,9 +254,11 @@ enum {
(_value != NULL && _expect != NULL && strcmp(_value, _expect) == 0)) \
{ if (flags & tst_verbatim) \
printf("%s: %s%sok: %s == %s \n", TSTNAME, #suite, #expect);break;}\
fprintf(stderr, "%s:%u: %s %s%sFAILED: %s != %s or \"%s\" != \"%s\"\n", \
fprintf(stderr, "%s:%u: %s %s%sFAILED: %s != %s or %s%s%s != \"%s\"\n", \
__FILE__, __LINE__, TSTNAME, \
#suite, #expect, _value, _expect); fflush(stderr); return 1; } \
#suite, #expect, \
_value ? "\"" : "", _value ? _value : "NULL", _value ? "\"" : "", \
_expect); fflush(stderr); return 1; } \
while(0)
/** @HIDE */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment