Please ignore this patch.
 
Thanks Mohan
High Availability Solutions Pvt. Ltd.
www.hasolutions.in

 
 
--------- Original Message --------- Subject: [PATCH 1/1] ckpt: add new test 
case of API saCkptSelectionObjectGet() of apitest [#2939]
From: "Mohan Kanakam" <[email protected]>
Date: 10/11/18 12:29 pm
To: [email protected], [email protected], 
[email protected], [email protected]
Cc: [email protected], "Mohan Kanakam" <[email protected]>

---
 src/ckpt/apitest/test_cpa.c | 15 +++++++++++++++
 src/ckpt/apitest/test_cpa_util.c | 4 ++++
 src/ckpt/apitest/test_cpsv.h | 1 +
 3 files changed, 20 insertions(+)
 
 diff --git a/src/ckpt/apitest/test_cpa.c b/src/ckpt/apitest/test_cpa.c
 index 51f3c99..1708919 100644
 --- a/src/ckpt/apitest/test_cpa.c
 +++ b/src/ckpt/apitest/test_cpa.c
 @@ -853,6 +853,18 @@ void cpsv_it_sel_06()
 test_validate(result, TEST_PASS);
 }
 
 +void cpsv_it_sel_07()
 +{
 + int result;
 + printHead("To verify SelObj api with corrupted handle");
 +
 + result = test_ckptSelectionObject(CKPT_SEL_CORR_HANDLE_T,
 + TEST_NONCONFIG_MODE);
 + printResult(result);
 +
 + test_validate(result, TEST_PASS);
 +}
 +
 /******* saCkptDispatch ********/
 
 void cpsv_it_disp_01()
 @@ -7968,6 +7980,9 @@ __attribute__((constructor)) static void 
ckpt_cpa_test_constructor(void)
 "To verify SelObj api with NULL selObj");
 test_case_add(2, cpsv_it_sel_06,
 "To verify SelObj api with both NULL handle and selObj");
 + test_case_add(2, cpsv_it_sel_07,
 + "To verify SelObj api with corrupted handle");
 +
 
 test_suite_add(3, "CKPT API saCkptDispatch()");
 test_case_add(
 diff --git a/src/ckpt/apitest/test_cpa_util.c 
b/src/ckpt/apitest/test_cpa_util.c
 index bc52ff9..1ee176d 100644
 --- a/src/ckpt/apitest/test_cpa_util.c
 +++ b/src/ckpt/apitest/test_cpa_util.c
 @@ -261,6 +261,10 @@ struct SafSelectionObject API_Selection[] = {
 {&tcd.ckptHandle, &tcd.selobj, SA_AIS_ERR_BAD_HANDLE,
 "Testing for sel object after finalizing handle"},
 
 + [CKPT_SEL_CORR_HANDLE_T] =
 + {&tcd.junkHandle2, &tcd.selobj, SA_AIS_ERR_BAD_HANDLE,
 + "Testing for sel object with corrupt handle"},
 +
 };
 
 int test_ckptSelectionObject(int i, CONFIG_FLAG cfg_flg)
 diff --git a/src/ckpt/apitest/test_cpsv.h b/src/ckpt/apitest/test_cpsv.h
 index 7acb622..f50e8a8 100644
 --- a/src/ckpt/apitest/test_cpsv.h
 +++ b/src/ckpt/apitest/test_cpsv.h
 @@ -279,6 +279,7 @@ typedef enum {
 CKPT_SEL_NULL_OBJ_T,
 CKPT_SEL_HDL_OBJ_NULL_T,
 CKPT_SEL_FIN_HANDLE_T,
 + CKPT_SEL_CORR_HANDLE_T,
 } CKPT_SEL_TC_TYPE;
 
 typedef enum {
 -- 
 2.7.4

_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to