Rev 4332 | Rev 4743 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4332 | Rev 4350 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | /** @addtogroup net |
29 | /** @addtogroup net |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
- | 34 | * Self tests implementation. |
|
34 | */ |
35 | */ |
35 | 36 | ||
36 | #include "configuration.h" |
37 | #include "configuration.h" |
37 | 38 | ||
38 | #if NET_SELF_TEST |
39 | #if NET_SELF_TEST |
Line 47... | Line 48... | ||
47 | #include "structures/generic_char_map.h" |
48 | #include "structures/generic_char_map.h" |
48 | #include "structures/measured_strings.h" |
49 | #include "structures/measured_strings.h" |
49 | 50 | ||
50 | #include "self_test.h" |
51 | #include "self_test.h" |
51 | 52 | ||
- | 53 | /** Tests the function, compares the result and remembers if the result differs. |
|
- | 54 | * @param name The test name. Input parameter. |
|
- | 55 | * @param function_call The function to be called and checked. Input parameter. |
|
- | 56 | * @param result The expected result. Input parameter. |
|
- | 57 | */ |
|
52 | #define TEST( name, function_call, result ); { \ |
58 | #define TEST( name, function_call, result ); { \ |
53 | printf( "\n\t%s", ( name )); \ |
59 | printf( "\n\t%s", ( name )); \ |
54 | if(( function_call ) != ( result )){ \ |
60 | if(( function_call ) != ( result )){ \ |
55 | printf( "\tERROR" ); \ |
61 | printf( "\tERROR" ); \ |
56 | error = 1; \ |
62 | error = 1; \ |