From 9d23eea2e6ebcee00a8a5bcc4239e5c76c33f19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Thu, 5 Nov 2026 07:22:30 +0100 Subject: [PATCH] Skipped the Module Manager host tests in MSVC builds of the test tree The Module Manager host tests compile the Cortex-A7 and Cortex-M4 module ports' headers, which stop with "Compiler not supported." unless the compiler is IAR, AC5 or GNU-compatible. Their CMake also passes GCC-only flags such as -Wextra and -include. MSVC therefore cannot build them, and with them in the tree the Windows regression build failed before running any test. No CI job builds the Windows tree, so the break went unnoticed. The test tree now adds the module_manager directory only when the compiler is not MSVC, as it already does only outside the MISRA configurations. Translating the flags to MSVC equivalents was considered and rejected because the port headers' compiler check still fails. On dev, scripts/build_tx.ps1 stops with MSVC error D8021 on -Wextra. With the flags translated, all 19 compile failures are that "Compiler not supported." error. With this change, the unmodified scripts build all five configurations on win32 and win64, and the only failing test is threadx_thread_wait_abort_and_isr_test, which #835 fixes. On Linux with GCC, all 13 Module Manager tests still build and pass. Assisted-by: Claude Code (Opus 5.5) --- test/tx/cmake/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/tx/cmake/CMakeLists.txt b/test/tx/cmake/CMakeLists.txt index 7ed620d9c..82034cc7d 100644 --- a/test/tx/cmake/CMakeLists.txt +++ b/test/tx/cmake/CMakeLists.txt @@ -109,8 +109,10 @@ endif() # Host tests for the Module Manager. Listed after thread_transition for the reason # given above it: additions here are appended rather than inserted, so that branches -# adding a directory of their own merge cleanly. -if(NOT ("TX_MISRA_ENABLE" IN_LIST ${CMAKE_BUILD_TYPE})) +# adding a directory of their own merge cleanly. They compile the module ports' +# headers, which accept only IAR, AC5 and GNU-compatible compilers, so MSVC builds +# skip them. +if(NOT MSVC AND NOT ("TX_MISRA_ENABLE" IN_LIST ${CMAKE_BUILD_TYPE})) add_subdirectory(module_manager) endif()