fix QDir::equalityOperator() test for certain hosts

on Debian and Ubuntu /sbin may be symlink

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-12-17 22:58:29 +00:00
parent b85095d056
commit 2435f71327

View file

@ -1436,8 +1436,8 @@ void tst_QDir::equalityOperator_data()
<< "." << "*.cpp" << int(QDir::Name) << int(QDir::Files)
<< true;
//need a path in the root directory that is unlikely to be a symbolic link.
QString pathinroot("/sbin/..");
// need a path in the root directory that is unlikely to be a symbolic link.
QString pathinroot("/boot/..");
QTest::newRow("QTBUG-20495-root") << pathinroot << "*.cpp" << int(QDir::Name) << int(QDir::Files)
<< QDir::rootPath() << "*.cpp" << int(QDir::Name) << int(QDir::Files)
<< true;