---
 src/plm/apitest/test_saPlmInitialize.c         |  6 ++++++
 src/plm/apitest/test_saPlmSelectionObjectGet.c | 21 +++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/src/plm/apitest/test_saPlmInitialize.c 
b/src/plm/apitest/test_saPlmInitialize.c
index f9826e4..825aea0 100644
--- a/src/plm/apitest/test_saPlmInitialize.c
+++ b/src/plm/apitest/test_saPlmInitialize.c
@@ -119,6 +119,8 @@ void saPlmInitialize_12(void)
 extern void saPlmSelectionObjectGet_01(void);
 extern void saPlmSelectionObjectGet_02(void);
 extern void saPlmSelectionObjectGet_03(void);
+extern void saPlmSelectionObjectGet_04(void);
+extern void saPlmSelectionObjectGet_05(void);
 extern void saPlmDispatch_01(void);
 extern void saPlmDispatch_02(void);
 extern void saPlmDispatch_03(void);
@@ -160,6 +162,10 @@ test_case_add(1, saPlmInitialize_12,
                      "SA_AIS_ERR_BAD_HANDLE - bad plmHandle");
        test_case_add(1, saPlmSelectionObjectGet_03,
                      "SA_AIS_INVALID_PARAM - null selection object");
+       test_case_add(1, saPlmSelectionObjectGet_04,
+                      "SA_AIS_ERR_BAD_HANDLE - null selection object and null 
pointer to plm handle");
+       test_case_add(1, saPlmSelectionObjectGet_05,
+                      "SA_AIS_ERR_BAD_HANDLE - plm service uninitialised");
        test_case_add(1, saPlmDispatch_01, "SA_AIS_OK with SA_DISPATCH_ALL");
        test_case_add(1, saPlmDispatch_02, "SA_AIS_OK with SA_DISPATCH_ONE");
        // test_case_add(1,saPlmDispatch_03, "SA_AIS_OK with
diff --git a/src/plm/apitest/test_saPlmSelectionObjectGet.c 
b/src/plm/apitest/test_saPlmSelectionObjectGet.c
index 453b09f..60886fa 100644
--- a/src/plm/apitest/test_saPlmSelectionObjectGet.c
+++ b/src/plm/apitest/test_saPlmSelectionObjectGet.c
@@ -32,3 +32,24 @@ void saPlmSelectionObjectGet_03(void)
        test_validate(rc, SA_AIS_ERR_INVALID_PARAM);
        safassert(saPlmFinalize(plmHandle), SA_AIS_OK);
 }
+
+void saPlmSelectionObjectGet_04(void)
+{
+        SaPlmCallbacksT plms_cbks;
+        plms_cbks.saPlmReadinessTrackCallback = &TrackCallbackT;
+        safassert(saPlmInitialize(&plmHandle, &plms_cbks, &PlmVersion),
+                  SA_AIS_OK);
+        rc = saPlmSelectionObjectGet(NULL, NULL);
+        test_validate(rc, SA_AIS_ERR_INVALID_PARAM);
+        safassert(saPlmFinalize(plmHandle), SA_AIS_ERR_BAD_HANDLE);
+}
+
+void saPlmSelectionObjectGet_05(void)
+{
+        SaPlmCallbacksT plms_cbks;
+        plms_cbks.saPlmReadinessTrackCallback = &TrackCallbackT;
+        rc = saPlmSelectionObjectGet(plmHandle,&selectionObject);
+        test_validate(rc, SA_AIS_ERR_INVALID_PARAM);
+        safassert(saPlmFinalize(plmHandle), SA_AIS_ERR_BAD_HANDLE);
+}
+
-- 
2.7.4



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

Reply via email to