Add test case (in comments) for exclude directory bug in gui.
This commit is contained in:
parent
6442938fe9
commit
8780713c51
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue