Subversion Repositories HelenOS

Rev

Rev 4743 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4743 Rev 4756
Line 50... Line 50...
50
#include "structures/dynamic_fifo.h"
50
#include "structures/dynamic_fifo.h"
51
 
51
 
52
#include "self_test.h"
52
#include "self_test.h"
53
 
53
 
54
/** Tests the function, compares the result and remembers if the result differs.
54
/** Tests the function, compares the result and remembers if the result differs.
55
 *  @param name The test name. Input parameter.
55
 *  @param[in] name The test name.
56
 *  @param function_call The function to be called and checked. Input parameter.
56
 *  @param[in] function_call The function to be called and checked.
57
 *  @param result The expected result. Input parameter.
57
 *  @param[in] result The expected result.
58
 */
58
 */
59
#define TEST( name, function_call, result );    {   \
59
#define TEST( name, function_call, result );    {   \
60
    printf( "\n\t%s", ( name ));                    \
60
    printf( "\n\t%s", ( name ));                    \
61
    if(( function_call ) != ( result )){            \
61
    if(( function_call ) != ( result )){            \
62
        printf( "\tERROR\n" );                      \
62
        printf( "\tERROR\n" );                      \