]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/test/unit/lib/notify/notify.c/notify_ut.c
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / test / unit / lib / notify / notify.c / notify_ut.c
index d0f55f7d700284342a2d504a81c6c0cdf014e9ee..9a1095fb382c812b659f2ad3834ee49719d3fb71 100644 (file)
@@ -96,20 +96,11 @@ main(int argc, char **argv)
        CU_pSuite suite = NULL;
        unsigned int num_failures;
 
-       if (CU_initialize_registry() != CUE_SUCCESS) {
-               return CU_get_error();
-       }
+       CU_set_error_action(CUEA_ABORT);
+       CU_initialize_registry();
 
        suite = CU_add_suite("app_suite", NULL, NULL);
-       if (suite == NULL) {
-               CU_cleanup_registry();
-               return CU_get_error();
-       }
-
-       if (CU_add_test(suite, "notify", notify) == NULL) {
-               CU_cleanup_registry();
-               return CU_get_error();
-       }
+       CU_ADD_TEST(suite, notify);
 
        CU_basic_set_mode(CU_BRM_VERBOSE);
        CU_basic_run_tests();