test/test_tree.c

changeset 443
d6d8712e15bc
parent 430
d4d643def2ac
child 449
68ad5750ba6b
--- a/test/test_tree.c	Tue Sep 28 18:03:10 2021 +0200
+++ b/test/test_tree.c	Tue Sep 28 18:05:52 2021 +0200
@@ -167,23 +167,9 @@
     }
 
     suite = CU_add_suite("tree suite", NULL, NULL);
-    if (NULL == suite) {
-        CU_cleanup_registry();
-        return CU_get_error();
-    }
 
-    if (
-            !CU_add_test(suite, "ll add tree node", test_cx_tree_add_node)
-            ) {
-        CU_cleanup_registry();
-        return CU_get_error();
-    }
-    if (
-            !CU_add_test(suite, "ll add tree child node", test_cx_tree_add_child_node)
-            ) {
-        CU_cleanup_registry();
-        return CU_get_error();
-    }
+    CU_add_test(suite, "ll add tree node", test_cx_tree_add_node);
+    CU_add_test(suite, "ll add tree child node", test_cx_tree_add_child_node);
     
     
     CU_basic_set_mode(UCX_CU_BRM);

mercurial