---
 src/plm/apitest/test_saPlmEntityGroupCreate.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/plm/apitest/test_saPlmEntityGroupCreate.c 
b/src/plm/apitest/test_saPlmEntityGroupCreate.c
index b3839cd..8d88c35 100644
--- a/src/plm/apitest/test_saPlmEntityGroupCreate.c
+++ b/src/plm/apitest/test_saPlmEntityGroupCreate.c
@@ -42,6 +42,17 @@ void saPlmEntityGroupCreate_04(void)
        safassert(saPlmFinalize(plmHandle), SA_AIS_OK);
 }
 
+void saPlmEntityGroupCreate_05(void)
+{
+        SaPlmCallbacksT plms_cbks;
+        plms_cbks.saPlmReadinessTrackCallback = &TrackCallbackT;
+        safassert(saPlmInitialize(&plmHandle, &plms_cbks, &PlmVersion),
+                  SA_AIS_OK);
+        rc = saPlmEntityGroupCreate(0, &entityGroupHandle);
+        test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
+        safassert(saPlmFinalize(plmHandle), SA_AIS_OK);
+}
+
 extern void saPlmEntityGroupAdd_01(void);
 extern void saPlmEntityGroupAdd_02(void);
 extern void saPlmEntityGroupAdd_03(void);
@@ -94,6 +105,10 @@ saPlmEntityGroupCreate_constructor(void)
            2, saPlmEntityGroupCreate_04,
            "saPlmEntityGroupCreate with invalid param 
-SA_AIS_ERR_INVALID_PARAM");
        test_case_add(
+            2, saPlmEntityGroupCreate_05,
+            "saPlmEntityGroupCreate with plmhandle as null pointer  - 
SA_AIS_ERR_BAD_HANDLE");
+
+       test_case_add(
            2, saPlmEntityGroupAdd_01,
            "saPlmEntityGroupAdd_01 with SA_PLM_GROUP_SINGLE_ENTITY option - 
SA_AIS_OK");
        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