summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-08-12 11:50:16 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-08-12 11:50:16 (GMT)
commit48a72aceeacb904b47176232a7d6624f6cc72f33 (patch)
tree581f1ed15cfbd5cc1a5393e6b8f4cc96f73016f1
parent34a4860216723c625e9311c6040fdbd1c5744b02 (diff)
downloadQt-48a72aceeacb904b47176232a7d6624f6cc72f33.zip
Qt-48a72aceeacb904b47176232a7d6624f6cc72f33.tar.gz
Qt-48a72aceeacb904b47176232a7d6624f6cc72f33.tar.bz2
Fixed qfileinfo autotest for Symbian
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp
index 4a091e3..9227add 100644
--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp
@@ -237,7 +237,6 @@ void tst_QFileInfo::copy()
tst_QFileInfo::tst_QFileInfo()
{
- Q_SET_DEFAULT_IAP
}
void tst_QFileInfo::isFile_data()
@@ -331,6 +330,9 @@ void tst_QFileInfo::isRoot_data()
QTest::newRow("drive 1") << "c:" << false;
QTest::newRow("drive 2") << "c:/" << true;
QTest::newRow("drive 3") << "p:/" << false;
+#endif
+
+#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
QTest::newRow("unc 1") << "//" + QtNetworkSettings::winServerName() << true;
QTest::newRow("unc 2") << "//" + QtNetworkSettings::winServerName() + "/" << true;
QTest::newRow("unc 3") << "//" + QtNetworkSettings::winServerName() + "/testshare" << false;
@@ -485,6 +487,8 @@ void tst_QFileInfo::canonicalFilePath()
QCOMPARE(info1.canonicalFilePath(), info2.canonicalFilePath());
}
}
+# if !defined(Q_OS_SYMBIAN)
+ // Symbian doesn't support links to directories
{
const QString link(QDir::tempPath() + QDir::separator() + "tst_qfileinfo");
QFile::remove(link);
@@ -516,6 +520,7 @@ void tst_QFileInfo::canonicalFilePath()
QCOMPARE(info1.canonicalFilePath(), info2.canonicalFilePath());
}
}
+# endif
#endif
}