29 #define SELF_TESTS __table ( struct self_test, "self_tests" ) 32 #define __self_test __table_entry ( SELF_TESTS, 01 ) 34 extern void test_ok (
int success,
const char *file,
unsigned int line,
44 #define okx( success, file, line ) \ 45 test_ok ( success, file, line, #success ) 46 #define ok( success ) \ 47 okx ( success, __FILE__, __LINE__ ) unsigned int failures
Number of test failures.
unsigned int total
Number of tests run.
void(* exec)(void)
Run self-tests.
const char * name
Test set name.
unsigned int assertion_failures
Number of assertion failures.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void test_ok(int success, const char *file, unsigned int line, const char *test)
Report test result.