From 166294a99642c041caa2f95555178c4b79f0ca62 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Tue, 26 Apr 2022 16:42:45 +0200 Subject: [PATCH] CMake: Temporarily disable test_static_resources on windows hosts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The output path of the object file exceeds the limit that the MSVC compiler can handle C:/Users/qt/work/qt/tqtc-qtbase_standalone_tests/tests/auto/cmake/ test_static_resources/test_static_resources_propagation\CMakeFiles \test_static_resources_propagation_cmp0099_old_finalize.dir\ test_static_resources_propagation_cmp0099_old_finalize_autogen \mocs_compilation.cpp.obj which results in fatal error C1083: Cannot open compiler generated file: '': Invalid argument Skip the test on Windows hosts to unblock the CI. Task-number: QTBUG-102864 Change-Id: I0c413485fc3ba805121c401173e931800c9e4166 Reviewed-by: Jörg Bornemann --- tests/auto/cmake/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt index e8d50d0c53c..14b73eddf22 100644 --- a/tests/auto/cmake/CMakeLists.txt +++ b/tests/auto/cmake/CMakeLists.txt @@ -277,7 +277,11 @@ include(test_plugin_shared_static_flavor.cmake) _qt_internal_test_expect_pass(tst_qaddpreroutine BINARY tst_qaddpreroutine) -_qt_internal_test_expect_pass(test_static_resources - BINARY "${CMAKE_CTEST_COMMAND}" - BINARY_ARGS "-V") +# TODO: Creates too long file paths on windows +# QTBUG-102864 +if(NOT CMAKE_HOST_WIN32) + _qt_internal_test_expect_pass(test_static_resources + BINARY "${CMAKE_CTEST_COMMAND}" + BINARY_ARGS "-V") +endif() _qt_internal_test_expect_pass(test_qt_extract_metatypes)