summaryrefslogtreecommitdiffstats
path: root/tests/auto/qnetworkconfigurationmanager
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-05-19 00:09:51 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-05-19 00:13:09 (GMT)
commitdf9ab6c300eca3a5c75dcee93ae848957cb9a617 (patch)
treec3086d33f7399ada2b6bde84bc01f79bad0eba2e /tests/auto/qnetworkconfigurationmanager
parent49564fa573cd15b5a6e4673b8945af6a92717432 (diff)
downloadQt-df9ab6c300eca3a5c75dcee93ae848957cb9a617.zip
Qt-df9ab6c300eca3a5c75dcee93ae848957cb9a617.tar.gz
Qt-df9ab6c300eca3a5c75dcee93ae848957cb9a617.tar.bz2
Only setup ICD test data when ICD is enabled.
Fixes unit test build failures introduced in 90de3e5c903b67b2e5f3d7dc14266fe24f1daa23.
Diffstat (limited to 'tests/auto/qnetworkconfigurationmanager')
-rw-r--r--tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp b/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
index 7cc527c..6dfc0b5 100644
--- a/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
+++ b/tests/auto/qnetworkconfigurationmanager/tst_qnetworkconfigurationmanager.cpp
@@ -45,7 +45,7 @@
#include <QtNetwork/qnetworkconfiguration.h>
#include <QtNetwork/qnetworkconfigmanager.h>
-#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5)
+#ifndef QT_NO_ICD
#include <stdio.h>
#include <iapconf.h>
#endif
@@ -67,7 +67,7 @@ private slots:
void configurationFromIdentifier();
private:
-#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5)
+#ifndef QT_NO_ICD
Maemo::IAPConf *iapconf;
Maemo::IAPConf *iapconf2;
Maemo::IAPConf *gprsiap;
@@ -79,7 +79,7 @@ private:
void tst_QNetworkConfigurationManager::initTestCase()
{
-#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5)
+#ifndef QT_NO_ICD
iapconf = new Maemo::IAPConf("007");
iapconf->setValue("ipv4_type", "AUTO");
iapconf->setValue("wlan_wepkey1", "connt");
@@ -153,7 +153,7 @@ void tst_QNetworkConfigurationManager::initTestCase()
void tst_QNetworkConfigurationManager::cleanupTestCase()
{
-#if defined(Q_WS_MAEMO_6) || defined(Q_WS_MAEMO_5)
+#ifndef QT_NO_ICD
iapconf->clear();
delete iapconf;
iapconf2->clear();