---
src/clm/apitest/tet_saClmClusterNotificationFree.cc | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/clm/apitest/tet_saClmClusterNotificationFree.cc
b/src/clm/apitest/tet_saClmClusterNotificationFree.cc
index a4df9e7..4b4d087 100644
--- a/src/clm/apitest/tet_saClmClusterNotificationFree.cc
+++ b/src/clm/apitest/tet_saClmClusterNotificationFree.cc
@@ -70,6 +70,18 @@ void saClmClusterNotificationFree_04() {
test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
}
+void saClmClusterNotificationFree_05() {
+ notificationBuffer_4.numberOfItems = 1;
+ notificationBuffer_4.notification = (SaClmClusterNotificationT_4 *)malloc(
+ sizeof(SaClmClusterNotificationT_4) *
notificationBuffer_4.numberOfItems);
+
+ safassert(ClmTest::saClmInitialize_4(&clmHandle, nullptr, &clmVersion_4),
+ SA_AIS_OK);
+ safassert(ClmTest::saClmFinalize(clmHandle), SA_AIS_OK);
+ rc = ClmTest::saClmClusterNotificationFree_4(
+ clmHandle, notificationBuffer_4.notification);
+ test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
+}
__attribute__((constructor)) static void
saClmClusterNotificationFree_constructor() {
test_suite_add(10, "Test case for saClmClusterNotificationFree");
@@ -81,4 +93,6 @@ saClmClusterNotificationFree_constructor() {
"saClmClusterNotificationFree with invalid param");
test_case_add(10, saClmClusterNotificationFree_04,
"saClmClusterNotificationFree with bad handle");
+ test_case_add(10, saClmClusterNotificationFree_05,
+ "saClmClusterNotificationFree with finalized handle");
}
--
2.7.4
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel