Removed 'examinelock', because its functionality is a subset of that of
[AROS.git] / test / clib / test.h
blob69277b140ca209259663919bcc0aec18c1bfd9a8
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /* Prototypes for mandatory functions */
7 void cleanup( void );
9 /* Return values */
10 #define OK 0 /* All tests succeeded */
11 #define FAIL 5 /* Some of the tests failed */
13 /* Testing macro */
14 #define TEST(x) \
15 if(!(x)) \
16 { \
17 printf( "Test FAILED in %s, line %d.\n", __FILE__, __LINE__ ); \
18 cleanup(); \
19 return FAIL; \
20 } \
21 else \
22 { \
23 printf( "Test passed in %s, line %d.\n", __FILE__, __LINE__ ); \
26 /* Only output when not passing */
27 #define TESTFALSE(x) \
28 if(!(x)) \
29 { \
30 printf( "Test FAILED in %s, line %d.\n", __FILE__, __LINE__ ); \
31 cleanup(); \
32 return FAIL; \