---
src/clm/apitest/tet_saClmClusterNodeGet.cc | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/src/clm/apitest/tet_saClmClusterNodeGet.cc
b/src/clm/apitest/tet_saClmClusterNodeGet.cc
index 8c84884..f80712e 100644
--- a/src/clm/apitest/tet_saClmClusterNodeGet.cc
+++ b/src/clm/apitest/tet_saClmClusterNodeGet.cc
@@ -194,6 +194,24 @@ void saClmClusterNodeGet_09() {
test_validate(rc, SA_AIS_OK);
}
+void saClmClusterNodeGet_10() {
+ nodeId = ncs_get_node_id();
+ safassert(
+ ClmTest::saClmInitialize(&clmHandle, &clmCallbacks_1, &clmVersion_1),
+ SA_AIS_OK);
+ safassert(ClmTest::saClmFinalize(clmHandle), SA_AIS_OK);
+ rc = ClmTest::saClmClusterNodeGet(clmHandle, nodeId, timeout,
&clusterNode_1);
+ test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
+ nodeId = ncs_get_node_id();
+ safassert(
+ ClmTest::saClmInitialize_4(&clmHandle, &clmCallbacks_4, &clmVersion_4),
+ SA_AIS_OK);
+ safassert(ClmTest::saClmFinalize(clmHandle), SA_AIS_OK);
+ rc = ClmTest::saClmClusterNodeGet_4(clmHandle, nodeId, timeout,
+ &clusterNode_4);
+ test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
+}
+
__attribute__((constructor)) static void saClmClusterNodeGet_constructor() {
test_suite_add(5, "Test case for saClmClusterNodeGet");
test_case_add(5, saClmClusterNodeGet_01,
@@ -221,4 +239,7 @@ __attribute__((constructor)) static void
saClmClusterNodeGet_constructor() {
test_case_add(5, saClmClusterNodeGet_09,
"saClmClusterNodeGet & saClmClusterNodeGet_4"
" with nodeId as SA_CLM_LOCAL_NODE_ID");
+ test_case_add(
+ 5, saClmClusterNodeGet_10,
+ "saClmClusterNodeGet & saClmClusterNodeGet_4 with Finalized handle");
}
--
2.7.4
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel