test/test_tree.c

changeset 445
26ae21face39
parent 443
d6d8712e15bc
child 449
68ad5750ba6b
--- a/test/test_tree.c	Tue Sep 28 18:09:14 2021 +0200
+++ b/test/test_tree.c	Tue Sep 28 18:09:25 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