test/pipe.c: Avoid printing hundreds of thousand output lines.
[AROS.git] / test / clib / test.h
blob7139d5d182c018bb2a350b8bd808946db4ef4145
1 /* Prototypes for mandatory functions */
2 void cleanup( void );
4 /* Return values */
5 #define OK 0 /* All tests succeded */
6 #define FAIL 5 /* Some of the tests failed */
8 /* Testing macro */
9 #define TEST(x) \
10 if(!(x)) \
11 { \
12 printf( "Test FAILED in %s, line %d.\n", __FILE__, __LINE__ ); \
13 cleanup(); \
14 return FAIL; \
15 } \
16 else \
17 { \
18 printf( "Test passed in %s, line %d.\n", __FILE__, __LINE__ ); \
21 /* Only output when not passing */
22 #define TESTFALSE(x) \
23 if(!(x)) \
24 { \
25 printf( "Test FAILED in %s, line %d.\n", __FILE__, __LINE__ ); \
26 cleanup(); \
27 return FAIL; \