--- src/ckpt/apitest/test_cpa.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
diff --git a/src/ckpt/apitest/test_cpa.c b/src/ckpt/apitest/test_cpa.c index c2f40d4..06b900c 100644 --- a/src/ckpt/apitest/test_cpa.c +++ b/src/ckpt/apitest/test_cpa.c @@ -3191,6 +3191,30 @@ final1: test_validate(result, TEST_PASS); } +void cpsv_it_close_09() +{ + int result; + printHead( + "To verify that close after finalize"); + result = test_ckptInitialize(CKPT_INIT_SUCCESS_T, TEST_CONFIG_MODE); + if (result != TEST_PASS) + goto final; + + result = test_ckptFinalize(CKPT_FIN_SUCCESS_T, TEST_CONFIG_MODE); + if (result != TEST_PASS) + goto final; + + result = test_ckptOpen(CKPT_OPEN_BAD_HANDLE2_T, TEST_NONCONFIG_MODE); + + result = test_ckptClose(CKPT_CLOSE_BAD_HANDLE2_T, TEST_CONFIG_MODE); + if (result != TEST_PASS) + goto final; + +final: + printResult(result); + test_validate(result, TEST_PASS); +} + /****** saCkptCheckpointUnlink *******/ void cpsv_it_unlink_01() @@ -8240,6 +8264,9 @@ __attribute__((constructor)) static void ckpt_cpa_test_constructor(void) test_case_add( 6, cpsv_it_close_08, "To verify that close cancels pending callbacks for that handle only"); + test_case_add( + 6, cpsv_it_close_09, + "To verify that close after finalize"); test_suite_add(7, "CKPT API saCkptCheckpointUnlink()"); test_case_add( -- 2.7.4 _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel