summaryrefslogtreecommitdiffstats
path: root/tests/auto/qabstractnetworkcache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qabstractnetworkcache')
-rw-r--r--tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro2
-rw-r--r--tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp8
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro b/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro
index cffadb0..11e340d 100644
--- a/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro
+++ b/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro
@@ -2,7 +2,7 @@ load(qttest_p4)
QT += network
SOURCES += tst_qabstractnetworkcache.cpp
-wince*: {
+wince*|symbian: {
testFiles.sources = tests
testFiles.path = .
DEPLOYMENT += testFiles
diff --git a/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp b/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp
index 92610db..fa36845 100644
--- a/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp
+++ b/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp
@@ -81,8 +81,12 @@ public:
: QNetworkDiskCache(parent)
, gotData(false)
{
+#ifdef Q_OS_SYMBIAN
+ QString location = QLatin1String("./cache/");
+#else
QString location = QDesktopServices::storageLocation(QDesktopServices::DataLocation)
- + QLatin1String("/cache/");
+ + QLatin1String("/cache/");
+#endif
setCacheDirectory(location);
clear();
}
@@ -99,6 +103,8 @@ public:
tst_QAbstractNetworkCache::tst_QAbstractNetworkCache()
{
+ Q_SET_DEFAULT_IAP
+
QCoreApplication::setOrganizationName(QLatin1String("Trolltech"));
QCoreApplication::setApplicationName(QLatin1String("autotest_qabstractnetworkcache"));
QCoreApplication::setApplicationVersion(QLatin1String("1.0"));