summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2009-08-11 16:11:25 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-11 16:21:09 (GMT)
commit7fe0dfb80efd67886a33fe8b37e9714175925688 (patch)
treee68df9927da4b221ebadb76a2beb9883a281d2d3 /tests
parent0e193b51c995395c92f8b1d0b67a782314772c6c (diff)
downloadQt-7fe0dfb80efd67886a33fe8b37e9714175925688.zip
Qt-7fe0dfb80efd67886a33fe8b37e9714175925688.tar.gz
Qt-7fe0dfb80efd67886a33fe8b37e9714175925688.tar.bz2
avoid crash when testing HiddenFlag and BaseName is empty
Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp
index a87e306..e2800e5 100644
--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp
@@ -974,6 +974,9 @@ void tst_QFileInfo::isHidden_data()
foreach (const QFileInfo& info, QDir::drives()) {
QTest::newRow(qPrintable("drive." + info.path())) << info.path() << false;
}
+#if !defined(Q_OS_WIN)
+ QTest::newRow("/bin/") << QString::fromLatin1("/bin/") << false;
+#endif
#ifdef Q_OS_MAC
QTest::newRow("mac_etc") << QString::fromLatin1("/etc") << true;
QTest::newRow("mac_private_etc") << QString::fromLatin1("/private/etc") << false;