QDir: Use QT_TEST_EQUALITY_OPS macro in unit-tests
Replace QTestPrivate::testEqualityOperators() helper function with QT_TEST_EQUALITY_OPS macro to get a reasonable debug output in case of failure. Task-number: QTBUG-120303 Change-Id: I1ca23cabfe62ab78e012cf95fd2add631fc88a64 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>bb10
parent
02e516281b
commit
760043ea8c
|
|
@ -712,15 +712,11 @@ void tst_QDir::compare()
|
|||
{
|
||||
QDir dir;
|
||||
dir.makeAbsolute();
|
||||
QTestPrivate::testEqualityOperators(dir, QDir::currentPath(), true);
|
||||
if (QTest::currentTestFailed())
|
||||
return;
|
||||
QT_TEST_EQUALITY_OPS(dir, QDir::currentPath(), true);
|
||||
|
||||
QCOMPARE(QDir(), QDir(QDir::currentPath()));
|
||||
|
||||
QTestPrivate::testEqualityOperators(QDir("../"), QDir(QDir::currentPath() + "/.."), true);
|
||||
if (QTest::currentTestFailed())
|
||||
return;
|
||||
QT_TEST_EQUALITY_OPS(QDir("../"), QDir(QDir::currentPath() + "/.."), true);
|
||||
}
|
||||
|
||||
static QStringList filterLinks(QStringList &&list)
|
||||
|
|
|
|||
Loading…
Reference in New Issue