165 if (CUE_SUCCESS != CU_initialize_registry()) { |
165 if (CUE_SUCCESS != CU_initialize_registry()) { |
166 return CU_get_error(); |
166 return CU_get_error(); |
167 } |
167 } |
168 |
168 |
169 suite = CU_add_suite("tree suite", NULL, NULL); |
169 suite = CU_add_suite("tree suite", NULL, NULL); |
170 if (NULL == suite) { |
|
171 CU_cleanup_registry(); |
|
172 return CU_get_error(); |
|
173 } |
|
174 |
170 |
175 if ( |
171 CU_add_test(suite, "ll add tree node", test_cx_tree_add_node); |
176 !CU_add_test(suite, "ll add tree node", test_cx_tree_add_node) |
172 CU_add_test(suite, "ll add tree child node", test_cx_tree_add_child_node); |
177 ) { |
|
178 CU_cleanup_registry(); |
|
179 return CU_get_error(); |
|
180 } |
|
181 if ( |
|
182 !CU_add_test(suite, "ll add tree child node", test_cx_tree_add_child_node) |
|
183 ) { |
|
184 CU_cleanup_registry(); |
|
185 return CU_get_error(); |
|
186 } |
|
187 |
173 |
188 |
174 |
189 CU_basic_set_mode(UCX_CU_BRM); |
175 CU_basic_set_mode(UCX_CU_BRM); |
190 |
176 |
191 int exitcode; |
177 int exitcode; |