---
src/clm/apitest/tet_saClmClusterNodeGetAsync.cc | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/src/clm/apitest/tet_saClmClusterNodeGetAsync.cc
b/src/clm/apitest/tet_saClmClusterNodeGetAsync.cc
index 67d876f..c5bcee9 100644
--- a/src/clm/apitest/tet_saClmClusterNodeGetAsync.cc
+++ b/src/clm/apitest/tet_saClmClusterNodeGetAsync.cc
@@ -239,6 +239,23 @@ void saClmClusterNodeGetAsync_09() {
test_validate(rc, SA_AIS_ERR_INIT);
}
+void saClmClusterNodeGetAsync_10() {
+ nodeId = ncs_get_node_id();
+ invocation = 300;
+ safassert(ClmTest::saClmInitialize(&clmHandle, &clmCallbacks1,
&clmVersion_1),
+ SA_AIS_OK);
+ safassert(ClmTest::saClmFinalize(clmHandle), SA_AIS_OK);
+ rc = ClmTest::saClmClusterNodeGetAsync(clmHandle, invocation, nodeId);
+ test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
+
+ safassert(
+ ClmTest::saClmInitialize_4(&clmHandle, &clmCallbacks4, &clmVersion_4),
+ SA_AIS_OK);
+ safassert(ClmTest::saClmFinalize(clmHandle), SA_AIS_OK);
+ rc = ClmTest::saClmClusterNodeGetAsync(clmHandle, invocation, nodeId);
+ test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
+}
+
__attribute__((constructor)) static void
saClmClusterNodeGetAsyncAsync_constructor() {
test_suite_add(6, "Test case for saClmClusterNodeGetAsync");
@@ -260,4 +277,6 @@ saClmClusterNodeGetAsyncAsync_constructor() {
"saClmClusterNodeGetAsync with nodeId as
SA_CLM_LOCAL_NODE_ID");
test_case_add(6, saClmClusterNodeGetAsync_09,
"saClmClusterNodeGetAsync with null callback");
+ test_case_add(6, saClmClusterNodeGetAsync_10,
+ "saClmClusterNodeGetAsync with finalized handle");
}
--
2.7.4
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel