tests: add test for stanza functions

Check reference counting in xmpp_stanza_add_child() amd
xmpp_stanza_add_child_ex().
This commit is contained in:
Dmitry Podgorny
2020-01-10 00:50:22 +02:00
parent 4b04db6b2d
commit 212df6d036
3 changed files with 104 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ TESTS = \
tests/test_jid \
tests/test_snprintf \
tests/test_string \
tests/test_stanza \
tests/test_resolver
check_PROGRAMS = $(TESTS)
@@ -193,3 +194,8 @@ tests_test_string_SOURCES = tests/test_string.c tests/test.h
tests_test_string_CFLAGS = $(STROPHE_FLAGS) -I$(top_srcdir)/src
tests_test_string_LDADD = $(STROPHE_LIBS)
tests_test_string_LDFLAGS = -static
tests_test_stanza_SOURCES = tests/test_stanza.c
tests_test_stanza_CFLAGS = $(STROPHE_FLAGS)
tests_test_stanza_LDADD = $(STROPHE_LIBS)
tests_test_stanza_LDFLAGS = -static