test/test_linked_list.c

changeset 411
2842f729caab
parent 398
8d506ed6c1c0
child 412
af766caea48d
equal deleted inserted replaced
410:76b76f0f046b 411:2842f729caab
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "cx/linked_list.h" 29 #include "cx/linked_list.h"
30 #include "test_config.h"
30 31
31 #include <CUnit/Basic.h> 32 void test_linked_list_wrap() {
33 CU_FAIL("test not implemented")
34 }
32 35
33 int main() { 36 int main() {
34 return 0; 37 CU_pSuite suite = NULL;
38
39 if (CUE_SUCCESS != CU_initialize_registry()) {
40 return CU_get_error();
41 }
42
43 suite = CU_add_suite("linked list creation", NULL, NULL);
44 if (NULL == suite) {
45 CU_cleanup_registry();
46 return CU_get_error();
47 }
48
49 if (
50 !CU_add_test(suite, "wrapping of custom linked list", test_linked_list_wrap)
51 ) {
52 CU_cleanup_registry();
53 return CU_get_error();
54 }
55
56 CU_basic_set_mode(UCX_CU_BRM);
57
58 int exitcode;
59 if (CU_basic_run_tests()) {
60 exitcode = CU_get_error();
61 } else {
62 exitcode = CU_get_number_of_failures() == 0 ? 0 : 1;
63 }
64 CU_cleanup_registry();
65 return exitcode;
35 } 66 }

mercurial