Changeset 1cf3f8d3 for test.h


Ignore:
Timestamp:
Jul 7, 2007, 5:42:45 PM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
535d68b
Parents:
9a6cc40
Message:
Make the built-in regression tests output TAP and add a perl wrapper
to call it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test.h

    r0138478 r1cf3f8d3  
    33
    44#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);     \
    66    if(!(__pred)) printf("\t(%s:%d)", __FILE__, __LINE__); printf("%c", '\n'); } while(0)
    77
Note: See TracChangeset for help on using the changeset viewer.