Changeset 14c9e05 for tester.c


Ignore:
Timestamp:
Jul 9, 2011, 4:01:01 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
786a410
Parents:
bf5e6a2
git-author:
David Benjamin <davidben@mit.edu> (06/25/11 14:05:30)
git-committer:
David Benjamin <davidben@mit.edu> (07/09/11 16:01:01)
Message:
Number test output

May as well appease TAP here when we can.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    rbf5e6a2 r14c9e05  
    129129#define FAIL_UNLESS(desc,pred) do { int __pred = (pred);                \
    130130    numtests++;                                                         \
    131     printf("%s %s", (__pred)?"ok":(numfailed++,"not ok"), desc);        \
     131    printf("%s %d %s", (__pred) ? "ok" : (numfailed++, "not ok"), numtests, desc); \
    132132    if(!(__pred)) printf("\t(%s:%d)", __FILE__, __LINE__); printf("%c", '\n'); } while(0)
    133133
Note: See TracChangeset for help on using the changeset viewer.