diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-10 10:15:28 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-10 10:16:35 (GMT) |
commit | 16e4047a627d85182d9d9622a839fa51a9650aca (patch) | |
tree | 029eccbcd389a3f0ccf7829ba61404c176de42fe /tests/auto/qfileinfo | |
parent | f85306467b84cbc300d13aa52e0f5db4b1a2b1e6 (diff) | |
download | Qt-16e4047a627d85182d9d9622a839fa51a9650aca.zip Qt-16e4047a627d85182d9d9622a839fa51a9650aca.tar.gz Qt-16e4047a627d85182d9d9622a839fa51a9650aca.tar.bz2 |
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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp index cd58fd6..1445f5b 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 |