--- src/clm/apitest/tet_saClmClusterTrackStop.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
diff --git a/src/clm/apitest/tet_saClmClusterTrackStop.cc b/src/clm/apitest/tet_saClmClusterTrackStop.cc index cb72188..4e04959 100644 --- a/src/clm/apitest/tet_saClmClusterTrackStop.cc +++ b/src/clm/apitest/tet_saClmClusterTrackStop.cc @@ -86,6 +86,24 @@ void saClmClusterTrackStop_02() { test_validate(rc, SA_AIS_ERR_BAD_HANDLE); } +void saClmClusterTrackStop_03() { + trackFlags = SA_TRACK_CURRENT; + nodeId = ncs_get_node_id(); + invocation = 600; + safassert(ClmTest::saClmInitialize(&clmHandle, &clmCallback11, &clmVersion_1), + SA_AIS_OK); + rc = ClmTest::saClmClusterTrack(clmHandle, trackFlags, nullptr); + rc = ClmTest::saClmClusterTrack(clmHandle, trackFlags, nullptr); + rc = ClmTest::saClmClusterNodeGetAsync(clmHandle, invocation, nodeId); + rc = ClmTest::saClmClusterTrack(clmHandle, trackFlags, nullptr); + rc = ClmTest::saClmClusterNodeGetAsync(clmHandle, invocation, nodeId); + rc = ClmTest::saClmClusterNodeGetAsync(clmHandle, invocation, nodeId); + rc = ClmTest::saClmClusterTrack(clmHandle, trackFlags, nullptr); + safassert(ClmTest::saClmFinalize(clmHandle), SA_AIS_OK); + rc = ClmTest::saClmClusterTrackStop(clmHandle); + test_validate(rc, SA_AIS_ERR_BAD_HANDLE); +} + __attribute__((constructor)) static void saClmClusterTrackStop_constructor() { test_suite_add(9, "Test case for saClmClusterTrackStop"); test_case_add(9, saClmClusterTrackStop_01, @@ -93,4 +111,7 @@ __attribute__((constructor)) static void saClmClusterTrackStop_constructor() { test_case_add( 9, saClmClusterTrackStop_02, "saClmClusterTrackStop with invalid handle, SA_AIS_ERR_BAD_HANDLE"); + test_case_add(9, saClmClusterTrackStop_03, + "saClmClusterTrackStop with finalized handle, 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