summaryrefslogtreecommitdiff
path: root/tests/auto/qfileinfo
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-12-10 11:15:28 +0100
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-12-10 11:16:35 +0100
commit16e4047a627d85182d9d9622a839fa51a9650aca (patch)
tree029eccbcd389a3f0ccf7829ba61404c176de42fe /tests/auto/qfileinfo
parentf85306467b84cbc300d13aa52e0f5db4b1a2b1e6 (diff)
downloadqt4-tools-16e4047a627d85182d9d9622a839fa51a9650aca.tar.gz
Fixes a qfileinfo autotest.
Canonical file paths can begin with slash only on unix platforms. Reviewed-by: Prasanth
Diffstat (limited to 'tests/auto/qfileinfo')
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp
index cd58fd6cee..1445f5b4e3 100644
--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp
@@ -513,9 +513,11 @@ void tst_QFileInfo::canonicalFilePath()
QFileInfo info("/tmp/../../../../../../../../../../../../../../../../../");
info.canonicalFilePath();
+#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
// This used to crash on Mac
QFileInfo dontCrash(QLatin1String("/"));
QCOMPARE(dontCrash.canonicalFilePath(), QLatin1String("/"));
+#endif
#ifndef Q_OS_WIN
// test symlinks