From 215b2ce09b72950d44a6f5423d29505ad1f41330 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 20 Sep 2022 11:20:25 +0200 Subject: [PATCH] Tests: Fix expectation and remove os limitation Change-Id: I6007c25ec4167083134b0cd03fdff8a9ff34355d Reviewed-by: hjk Reviewed-by: Qt CI Bot --- tests/auto/utils/fileutils/tst_fileutils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/auto/utils/fileutils/tst_fileutils.cpp b/tests/auto/utils/fileutils/tst_fileutils.cpp index aa50abe698e..7488a1787fc 100644 --- a/tests/auto/utils/fileutils/tst_fileutils.cpp +++ b/tests/auto/utils/fileutils/tst_fileutils.cpp @@ -163,18 +163,16 @@ void tst_fileutils::isChildOf_data() QTest::newRow("same") << "/tmp/dir" << "/tmp/dir" << false; // Windows stuff: -#ifdef Q_OS_WIN QTest::newRow("C:/data") << "C:/" << "C:/data" << true; QTest::newRow("C:/") << "" << "C:/" << false; QTest::newRow("com-port") << "//./" << "//./com1" << true; - QTest::newRow("extended-length-path") << "\\\\?\\C:\\" << "\\\\?\\C:\\path" << false; + QTest::newRow("extended-length-path") << "\\\\?\\C:\\" << "\\\\?\\C:\\path" << true; QTest::newRow("/Global?\?/UNC/host") << "/Global?\?/UNC/host" << "/Global?\?/UNC/host/file" << true; QTest::newRow("//server/directory/file") << "//server/directory" << "//server/directory/file" << true; QTest::newRow("//server/directory") << "//server" << "//server/directory" << true; -#endif } void tst_fileutils::isChildOf()