mirror of https://github.com/qt/qtbase.git
tst_QDir: use COMPARE_EQ when comparing QStringLists
It prints the computed and expected lists if they don't match. Also rename a duplicate test data tag name. Pick-to: 6.8 6.5 Change-Id: Id2d438cdbebd5262fdacdfb3cc29660619aead18 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commitfb640ad2f4
) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit366ffa2c2d
)
This commit is contained in:
parent
a45ed19f7c
commit
29744dda18
|
@ -835,7 +835,7 @@ void tst_QDir::entryListWithTestFiles_data()
|
|||
<< filterLinks(QString(".,..,directory,file,linktodirectory.lnk,linktofile.lnk,writable").split(','));
|
||||
// Tests an assert in QDirSortItemComparator, when QDir::LocaleAware is set
|
||||
// a QCollator is used
|
||||
QTest::newRow("QDir::AllEntries")
|
||||
QTest::newRow("QDir::AllEntries-LocaleAware")
|
||||
<< (m_dataPath + "/entrylist/") << QStringList("*")
|
||||
<< int(QDir::AllEntries) << int(QDir::Name | QDir::LocaleAware)
|
||||
<< filterLinks(QString(".,..,directory,file,linktodirectory.lnk,linktofile.lnk,writable").split(','));
|
||||
|
@ -1010,7 +1010,7 @@ void tst_QDir::entryListWithTestFiles()
|
|||
QVERIFY2(QFile::remove(testFiles.at(i)), qPrintable(testFiles.at(i)));
|
||||
|
||||
if (doContentCheck)
|
||||
QCOMPARE(actual, expected);
|
||||
QCOMPARE_EQ(actual, expected);
|
||||
}
|
||||
|
||||
void tst_QDir::entryListTimedSort()
|
||||
|
|
Loading…
Reference in New Issue