Add test case (in comments) for exclude directory bug in gui.

This commit is contained in:
Reijo Tomperi 2012-12-13 00:16:24 +02:00
parent 6442938fe9
commit 8780713c51
1 changed files with 16 additions and 1 deletions

View File

@ -160,5 +160,20 @@ void TestFileList::filterFiles4()
QVERIFY(! files.contains(base + "/dir1/foo1.cpp"));
QVERIFY(! files.contains(base + "/dir1/dir11/foo11.cpp"));
}
/*
void TestFileList::filterFiles5()
{
FileList list;
QStringList filters;
filters << QDir(QString(SRCDIR) + "/../data/files/dir1/").absolutePath() + "/";
list.AddExcludeList(filters);
list.AddDirectory(QString(SRCDIR) + "/../data/files", true);
QStringList files = list.GetFileList();
QCOMPARE(files.size(), 8);
QDir dir(QString(SRCDIR) + "/../data/files");
QString base = dir.canonicalPath();
QVERIFY(! files.contains(base + "/dir1/foo1.cpp"));
QVERIFY(! files.contains(base + "/dir1/dir11/foo11.cpp"));
}
*/
QTEST_MAIN(TestFileList)