forked from qt-creator/qt-creator
fileutils: Fix tests
Change-Id: Iafeab41b0e6f7cdb10802e48c3bc7fe5548c064c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -126,14 +126,14 @@ void tst_fileutils::parentDir_data()
|
|||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QTest::newRow("C:/data") << "C:/data" << "C:/" << "";
|
QTest::newRow("C:/data") << "C:/data" << "C:/" << "";
|
||||||
QTest::newRow("C:/") << "C:/" << "" << "";
|
QTest::newRow("C:/") << "C:/" << "" << "";
|
||||||
QTest::newRow("//./com1") << "//./com1" << "//./" << "";
|
QTest::newRow("//./com1") << "//./com1" << "//." << "";
|
||||||
QTest::newRow("//?/path") << "//?/path" << "/" << "Qt 4 cannot handle this path.";
|
QTest::newRow("//?/path") << "//?/path" << "/" << "Qt 4 cannot handle this path.";
|
||||||
QTest::newRow("/Global?\?/UNC/host") << "/Global?\?/UNC/host" << "/Global?\?/UNC/host"
|
QTest::newRow("/Global?\?/UNC/host") << "/Global?\?/UNC/host" << "/Global?\?/UNC/host"
|
||||||
<< "Qt 4 cannot handle this path.";
|
<< "Qt 4 cannot handle this path.";
|
||||||
QTest::newRow("//server/directory/file")
|
QTest::newRow("//server/directory/file")
|
||||||
<< "//server/directory/file" << "//server/directory" << "";
|
<< "//server/directory/file" << "//server/directory" << "";
|
||||||
QTest::newRow("//server/directory") << "//server/directory" << "//server/" << "";
|
QTest::newRow("//server/directory") << "//server/directory" << "//server" << "";
|
||||||
QTest::newRow("//server") << "//server/" << "" << "";
|
QTest::newRow("//server") << "//server" << "" << "";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,8 +166,8 @@ void tst_fileutils::isChildOf_data()
|
|||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QTest::newRow("C:/data") << "C:/" << "C:/data" << true;
|
QTest::newRow("C:/data") << "C:/" << "C:/data" << true;
|
||||||
QTest::newRow("C:/") << "" << "C:/" << false;
|
QTest::newRow("C:/") << "" << "C:/" << false;
|
||||||
QTest::newRow("//./com1") << "/" << "//./com1" << false;
|
QTest::newRow("com-port") << "//./" << "//./com1" << true;
|
||||||
QTest::newRow("//?/path") << "/" << "//?/path" << false;
|
QTest::newRow("extended-length-path") << "\\\\?\\C:\\" << "\\\\?\\C:\\path" << false;
|
||||||
QTest::newRow("/Global?\?/UNC/host") << "/Global?\?/UNC/host"
|
QTest::newRow("/Global?\?/UNC/host") << "/Global?\?/UNC/host"
|
||||||
<< "/Global?\?/UNC/host/file" << true;
|
<< "/Global?\?/UNC/host/file" << true;
|
||||||
QTest::newRow("//server/directory/file")
|
QTest::newRow("//server/directory/file")
|
||||||
|
Reference in New Issue
Block a user