summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdir/tst_qdir.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-08-27 08:08:21 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-08-27 08:08:21 (GMT)
commit88a41bd9d0ff69dbf5695644643967ddc9b34ddf (patch)
tree07a782bb162aeba9776d3d2a2737a032e349af0d /tests/auto/qdir/tst_qdir.cpp
parente2c2e7e7fb3bee99260dc5b7bfab42c9217c18c8 (diff)
parent7b45a4cbf7593c8d7a837d826d9827fee243c46c (diff)
downloadQt-88a41bd9d0ff69dbf5695644643967ddc9b34ddf.zip
Qt-88a41bd9d0ff69dbf5695644643967ddc9b34ddf.tar.gz
Qt-88a41bd9d0ff69dbf5695644643967ddc9b34ddf.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging: (21 commits) Revert "Don't second-guess the "engine"; call cleanPath on absolutePaths" Revert "In 4.7 QFileInfo::absolute(File)Path returned clean paths" In 4.7 QFileInfo::absolute(File)Path returned clean paths ret is an "internal" path, no need to re-process it We prefer capitalized drive letters, make it so sooner Don't second-guess the "engine"; call cleanPath on absolutePaths Compare non-canonical paths before falling back on expensive computation Fix QDir::operator==(const QDir &) const Off-by-one error in assert condition... Leftovers from 401722ef9e6fe79bd41f9d5f79668f5c4997c8e6 Merged fileTemplate test with QTBUG_4796 Cleanup code: removing empty stubs Fix QTemporaryFile regressions and new found issues Use "native paths" on POSIX platforms as well Cleanup #includes Add output on test failure Atomic implementation of create file and obtain handle for Win/Symbian Minimize encoding conversions when generating unique file name Use QStringBuilder when copying template for modification Make Symbian follow Windows code in temporary path generation ...
Diffstat (limited to 'tests/auto/qdir/tst_qdir.cpp')
-rw-r--r--tests/auto/qdir/tst_qdir.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp
index 0a42a97..419eaae 100644
--- a/tests/auto/qdir/tst_qdir.cpp
+++ b/tests/auto/qdir/tst_qdir.cpp
@@ -444,9 +444,15 @@ void tst_QDir::QDir_default()
void tst_QDir::compare()
{
// operator==
+
+ // Not using QCOMPARE to test result of QDir::operator==
+
QDir dir;
dir.makeAbsolute();
QVERIFY(dir == QDir::currentPath());
+
+ QVERIFY(QDir() == QDir(QDir::currentPath()));
+ QVERIFY(QDir("../") == QDir(QDir::currentPath() + "/.."));
}
static QStringList filterLinks(const QStringList &list)