From 6808c891fb9a088e89513e97bb3c0a93ef5f421c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 12 Sep 2019 10:29:55 +0200 Subject: Tests: Fix expectation for parent of COM port Keep expected path in line with result when using QFileInfo. Change-Id: I8d323212d1627b81de01582c368a4e9ffbba734c Reviewed-by: Orgad Shaneh --- tests/auto/utils/fileutils/tst_fileutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto') diff --git a/tests/auto/utils/fileutils/tst_fileutils.cpp b/tests/auto/utils/fileutils/tst_fileutils.cpp index 2102bd0f06f..c13db0bf551 100644 --- a/tests/auto/utils/fileutils/tst_fileutils.cpp +++ b/tests/auto/utils/fileutils/tst_fileutils.cpp @@ -63,7 +63,7 @@ void tst_fileutils::parentDir_data() #ifdef Q_OS_WIN QTest::newRow("C:/data") << "C:/data" << "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("/Global?\?/UNC/host") << "/Global?\?/UNC/host" << "/Global?\?/UNC/host" << "Qt 4 cannot handle this path."; -- cgit v1.2.3