/*
    Copyright (C) 1995-2014, The AROS Development Team. All rights reserved.
*/

/* Prototypes for mandatory functions */
void cleanup( void );

/* Return values */
#define OK   0	/* All tests succeeded */
#define FAIL 5  /* Some of the tests failed */

/* Testing macro */
#define TEST(x) \
        if(!(x))                                                            \
        {                                                                   \
            printf( "Test FAILED in %s, line %d.\n", __FILE__, __LINE__ );  \
            cleanup();                                                      \
            return FAIL;                                                    \
        }                                                                   \
        else                                                                \
        {                                                                   \
            printf( "Test passed in %s, line %d.\n", __FILE__, __LINE__ );  \
        }        

/* Only output when not passing */
#define TESTFALSE(x) \
        if(!(x))                                                            \
        {                                                                   \
            printf( "Test FAILED in %s, line %d.\n", __FILE__, __LINE__ );  \
            cleanup();                                                      \
            return FAIL;                                                    \
        }

