tests/ntfsv/Makefile.am | 3 ++-
tests/ntfsv/tet_ntf_common.h | 7 +++++++
tests/ntfsv/tet_ntf_main.c | 4 ++--
3 files changed, 11 insertions(+), 3 deletions(-)
New file tet_ntf_clm.c contains new test cases for testing this funtionality.
On a non-member node, ntf APIs must return SA_AIS_ERR_UNAVAILABLE.
diff --git a/tests/ntfsv/Makefile.am b/tests/ntfsv/Makefile.am
--- a/tests/ntfsv/Makefile.am
+++ b/tests/ntfsv/Makefile.am
@@ -65,7 +65,8 @@ ntftest_SOURCES = \
tet_saNtfArrayValGet.c \
tet_saNtfPtrValGet.c \
test_ntfFilterVerification.c \
- tet_longDnObject_notification.c
+ tet_longDnObject_notification.c \
+ tet_ntf_clm.c
ntftest_LDADD = \
$(top_builddir)/tests/unit_test_fw/src/libutest.la
diff --git a/tests/ntfsv/tet_ntf_common.h b/tests/ntfsv/tet_ntf_common.h
--- a/tests/ntfsv/tet_ntf_common.h
+++ b/tests/ntfsv/tet_ntf_common.h
@@ -189,6 +189,13 @@ void poll_until_received(SaNtfHandleT nt
extern void assertvalue_impl(__const char *__assertion, __const char *__file,
unsigned int __line, __const char *__function);
+
+extern void saNtfNotificationSend_01(void);
+extern void saNtfNotificationSend_02(void);
+extern void saNtfNotificationSend_03(void);
+extern void saNtfNotificationSend_04(void);
+extern void saNtfNotificationSend_05(void);
+extern const SaVersionT lowestVersion;
#define assertvalue(expr) \
(((expr) ? 0 : (assertvalue_impl (__STRING(expr), __FILE__, __LINE__,
__FUNCTION__), 1)))
diff --git a/tests/ntfsv/tet_ntf_main.c b/tests/ntfsv/tet_ntf_main.c
--- a/tests/ntfsv/tet_ntf_main.c
+++ b/tests/ntfsv/tet_ntf_main.c
@@ -20,9 +20,9 @@
#include "tet_ntf.h"
/* Change this to current highest supported version */
-#define NTF_HIGHEST_SUPPORTED_VERSION {'A', 0x01, 0x01}
-
+#define NTF_HIGHEST_SUPPORTED_VERSION {'A', 0x01, 0x02}
const SaVersionT refVersion = NTF_HIGHEST_SUPPORTED_VERSION;
+const SaVersionT lowestVersion = {'A', 0x01, 0x01};
SaVersionT ntfVersion = NTF_HIGHEST_SUPPORTED_VERSION;
SaAisErrorT rc = SA_AIS_OK;
SaNtfHandleT ntfHandle = 0;
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel