9 void (*Teardown)(void);
12 extern tTEST gaTests[];
13 extern int giNumTests;
15 extern void TestFailure(const char *ReasonFmt, ...) __attribute__((noreturn));
17 #define TEST_ASSERT(expr) do{ \
18 if( !(expr) ) TestFailure("Assertion %s", #expr );\
21 #define TEST_ASSERT_R(a,r,b) do{ \
22 if( !((a) r (b)) ) TestFailure("Assertion %s(%i) %s %s(%i)", #a, (a), #r, #b, (b) );\
24 #define TEST_ASSERT_SR(a,r,b) do{ \
25 if( !(strcmp((a),(b)) r 0) ) TestFailure("Assertion %s(\"%s\") %s %s(\"%s\")", #a, (a), #r, #b, (b) );\