summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfileinfo
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-10-13 16:40:03 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-10-18 13:57:57 (GMT)
commit7a5adf67655b54a0ea43b641dfbd0924b06d214a (patch)
treed84ac63ed8217e68f2d03052de570c8b51464c0c /tests/auto/qfileinfo
parent303bb0a3d60c3d7b991ea7829c6dd2c5b3beb9d6 (diff)
downloadQt-7a5adf67655b54a0ea43b641dfbd0924b06d214a.zip
Qt-7a5adf67655b54a0ea43b641dfbd0924b06d214a.tar.gz
Qt-7a5adf67655b54a0ea43b641dfbd0924b06d214a.tar.bz2
Create regression test for QFileInfo("").exists()
File engine refactor caused a regression in QTextDocument, due to a QFileInfo constructed with an empty string returning true from exists() Added a test case to QFileInfo to catch this at the correct level. Reviewed-By: joao
Diffstat (limited to 'tests/auto/qfileinfo')
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp
index d2019b1..cd1a597 100644
--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp
@@ -412,6 +412,7 @@ void tst_QFileInfo::exists_data()
QTest::newRow("data9") << SRCDIR "resources/file?.ext1" << false;
QTest::newRow("data10") << "." << true;
QTest::newRow("data11") << ". " << false;
+ QTest::newRow("empty") << "" << false;
QTest::newRow("simple dir") << SRCDIR "resources" << true;
QTest::newRow("simple dir with slash") << SRCDIR "resources/" << true;