Merged in MorphOS-specific improvements from MorphOS team.
[AROS.git] / test / clib / test.h
blobfe8fc8ab03cca4f415509f5bc3cff1b2b6f8aa21
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__ ); \