Changes in test.h [0138478:1cf3f8d3]
Legend:
- Unmodified
- Added
- Removed
-
test.h
r0138478 r1cf3f8d3 3 3 4 4 #define FAIL_UNLESS(desc,pred) do { int __pred = (pred); \ 5 printf(" \t%-4s: %s", (__pred)?"ok":(numfailed++,"FAIL"), desc); \5 printf("%s %s", (__pred)?"ok":(numfailed++,"not ok"), desc); \ 6 6 if(!(__pred)) printf("\t(%s:%d)", __FILE__, __LINE__); printf("%c", '\n'); } while(0) 7 7
Note: See TracChangeset
for help on using the changeset viewer.