---
 src/ckpt/apitest/test_cpa.c | 54 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/src/ckpt/apitest/test_cpa.c b/src/ckpt/apitest/test_cpa.c
index 06b900c..5852c10 100644
--- a/src/ckpt/apitest/test_cpa.c
+++ b/src/ckpt/apitest/test_cpa.c
@@ -3480,6 +3480,56 @@ final:
        test_validate(result, TEST_PASS);
 }
 
+void cpsv_it_unlink_13()
+{
+       int result;
+       printHead(
+           "To test unlink with synchronous update handle");
+       result = test_ckptInitialize(CKPT_INIT_SYNC_NULL_CBK_T, 
TEST_NONCONFIG_MODE);
+       if (result != TEST_PASS)
+               goto final1;
+
+       result =
+           test_ckptOpen(CKPT_OPEN_ALL_CREATE_SUCCESS1_T, TEST_CONFIG_MODE);
+       if (result != TEST_PASS)
+               goto final2;
+
+       result = test_ckptUnlink(CKPT_UNLINK_SUCCESS11_T, TEST_CONFIG_MODE);
+       if (result != TEST_PASS)
+               goto final2;
+
+final2:
+       test_cpsv_cleanup(CKPT_INIT_SYNC_NULL_CBK_T);
+final1:
+       printResult(result);
+       test_validate(result, TEST_PASS);
+}
+
+void cpsv_it_unlink_14()
+{
+       int result;
+       printHead(
+           "To test unlink with asynchronous update handle");
+       result = test_ckptInitialize(CKPT_INIT_SYNC_NULL_CBK_T, 
TEST_NONCONFIG_MODE);
+       if (result != TEST_PASS)
+               goto final1;
+
+       result =
+           test_ckptOpen(CKPT_OPEN_ACTIVE_CREATE_SUCCESS1_T, TEST_CONFIG_MODE);
+       if (result != TEST_PASS)
+               goto final2;
+
+       result = test_ckptUnlink(CKPT_UNLINK_SUCCESS12_T, TEST_CONFIG_MODE);
+       if (result != TEST_PASS)
+               goto final2;
+
+final2:
+       test_cpsv_cleanup(CKPT_INIT_SYNC_NULL_CBK_T);
+final1:
+       printResult(result);
+       test_validate(result, TEST_PASS);
+}
+
 /******* saCkptRetentionDurationSet ******/
 
 void cpsv_it_rdset_01()
@@ -8297,6 +8347,10 @@ __attribute__((constructor)) static void 
ckpt_cpa_test_constructor(void)
                      "To test unlink with NULL ckpt name");
        test_case_add(7, cpsv_it_unlink_12,
                      "To test unlink a ckpt with invalid extended name");
+       test_case_add(7, cpsv_it_unlink_13,
+                     "To test unlink with synchronous update handle");
+       test_case_add(7, cpsv_it_unlink_14,
+                     "To test unlink with asynchronous update handle");
 
        test_suite_add(8, "CKPT API saCkptRetenionDurationSet()");
        test_case_add(
-- 
2.7.4



_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to