2 #include "CUnit/Basic.h"
9 int clean_suite( void )
26 CU_pSuite pSuite = NULL;
28 /* initialize the CUnit test registry */
29 if ( CUE_SUCCESS != CU_initialize_registry() ) {
30 return CU_get_error();
33 /* add a suite to the registry */
34 pSuite = CU_add_suite( "Testing Common", init_suite, clean_suite );
36 if ( NULL == pSuite ) {
37 CU_cleanup_registry();
38 return CU_get_error();
41 /* add the tests to the suite */
42 /* NOTE - ORDER IS IMPORTANT */
43 if ( ( NULL == CU_add_test( pSuite, "test of def_TRUE()", test_def_TRUE ) ) ||
44 ( NULL == CU_add_test( pSuite, "test of def_TRUE()", test_def_TRUE ) )
47 CU_cleanup_registry();
48 return CU_get_error();
53 /* Run all tests using the CUnit Basic interface */
54 CU_basic_set_mode(CU_BRM_VERBOSE);
56 CU_cleanup_registry();
57 return CU_get_error();