From 32ce1b4d03869c9f4d489241d2e573b31b7de664 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Wed, 12 Sep 2012 16:15:16 +0200 Subject: don't test stream initiation if QXMPP_AUTOTEST_INTERNAL is false --- tests/tests.cpp | 2 ++ tests/tests.pro | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/tests.cpp b/tests/tests.cpp index cc072c6d..0937afb1 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -942,8 +942,10 @@ int main(int argc, char *argv[]) tst_QXmppStanza testStanza; errors += QTest::qExec(&testStanza); +#ifdef QXMPP_AUTOTEST_INTERNAL tst_QXmppStreamInitiationIq testSI; errors += QTest::qExec(&testSI); +#endif TestStun testStun; errors += QTest::qExec(&testStun); diff --git a/tests/tests.pro b/tests/tests.pro index e88c156e..57a84aa8 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -40,8 +40,8 @@ HEADERS += \ vcard.h !isEmpty(QXMPP_AUTOTEST_INTERNAL) { - HEADERS += codec.h sasl.h - SOURCES += codec.cpp sasl.cpp + HEADERS += codec.h sasl.h si.h + SOURCES += codec.cpp sasl.cpp si.cpp } QMAKE_LIBDIR += ../src -- cgit v1.2.3