From 27727230923c3569ee43ab6c60fcfab5475b7930 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sat, 13 Jan 2024 12:53:02 -0500 Subject: [PATCH] BUG: Fix ctkCoreSettingsTest testMultiplePaths on Windows Follow-up on commit f0bb5d782 (ENH: Allow saving relative paths to settings) where the test case was incorrectly specified. It fixes the following error: 10: FAIL! : ctkCoreSettingsTester::testMultiplePaths(windows-style absolute paths) Compared lists differ at index 0. 10: Actual (settings.value(key).toStringList()): "d:/windows/path/internal/dir" 10: Expected (expectedStoredValues): "/internal/dir" 10: C:\path\to\CTK\Libs\Core\Testing\Cpp\ctkCoreSettingsTest.cpp(115) : failure location --- Libs/Core/Testing/Cpp/ctkCoreSettingsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libs/Core/Testing/Cpp/ctkCoreSettingsTest.cpp b/Libs/Core/Testing/Cpp/ctkCoreSettingsTest.cpp index a052214395..fe12bafb42 100644 --- a/Libs/Core/Testing/Cpp/ctkCoreSettingsTest.cpp +++ b/Libs/Core/Testing/Cpp/ctkCoreSettingsTest.cpp @@ -139,7 +139,7 @@ void ctkCoreSettingsTester::testMultiplePaths_data() << (QStringList() << "/internal/dir"); QTest::newRow("windows-style absolute paths") << "c:/windows/path" - << (QStringList() << "d:/windows/path/internal/dir" << "c:/windows/external/subdir/file.txt") + << (QStringList() << "c:/windows/path/internal/dir" << "c:/windows/external/subdir/file.txt") << (QStringList() << "/internal/dir" << "c:/windows/external/subdir/file.txt"); #endif