From 0564ebdb3641d7325f73dbbf2cbb04e6dca92d83 Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Tue, 11 May 2021 14:09:11 +0200 Subject: Unify behavior for long path or UNC prefix removal Split the code out of QDir::fromNativeSeparator into a separate reusable function to remove the above-mentioned prefixes. Fixes and unifies behavior if the prefix was given with slashes instead of backslashes. Add a couple more test cases. Fixes: QTBUG-93868 Pick-to: 5.15 6.0 6.1 Change-Id: Ibd94ae283e2fb113f9c2db97475fbc7d89522bbf Reviewed-by: Edward Welbourne Reviewed-by: Oliver Wolff --- tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt') diff --git a/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt b/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt index 11d4b991ce..f8419cee87 100644 --- a/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt +++ b/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt @@ -45,3 +45,8 @@ if(ANDROID AND NOT ANDROID_EMBEDDED) ${android_testdata_resource_files} ) endif() + +qt_internal_extend_target(tst_qtemporaryfile CONDITION WIN32 + LIBRARIES + shlwapi +) -- cgit v1.2.3