- definition of CU_ASSERT_FAILURE and CU_ASSERT_SUCCESS for easy checking of return values in tests.
- pcpoint_set functions were returning the PC_SUCCESS/PC_FAILURE as a double (!)
- add simple xy, xyz, xym and xyzm xml schemas for unit tests (test_point_xyzm)
- definition of CU_ASSERT_FAILURE and CU_ASSERT_SUCCESS for easy checking of return values in tests.
- pcpoint_set functions were returning the PC_SUCCESS/PC_FAILURE as a double (!)
- add simple xy, xyz, xym and xyzm xml schemas for unit tests (test_point_xyzm)
* Remove unused function in pc_patch_ght.c
* Remove unused vars in pc_patch_lazperf.c
* Remove unused vars in cu_pc_patch_ght.c
* Remove unused vars in cu_pc_point.c
* Remove unused vars in cu_pc_bytes.c
In CUnit 2.1-2 and before the CU_SuiteInfo structure looks like this:
typedef struct CU_SuiteInfo {
const char *pName;
CU_InitializeFunc pInitFunc;
CU_CleanupFunc pCleanupFunc;
CU_TestInfo *pTests;
} CU_SuiteInfo;
In CUnit 2.1-3 it looks like this:
typedef struct CU_SuiteInfo {
const char *pName;
CU_InitializeFunc pInitFunc;
CU_CleanupFunc pCleanupFunc;
CU_SetUpFunc pSetUpFunc;
CU_TearDownFunc pTearDownFunc;
CU_TestInfo *pTests;
} CU_SuiteInfo;
This commit changes the test code so it works with both CUnit 2.1-2 and CUnit
2.1-3.
The function was written by Remi-C and slightly modified by me
to avoid the check for NULL and be const-correct.
Also I've added a unit test for the new library function.