From 9feadb04999c9f54da93aaafb1aea9f759b424e4 Mon Sep 17 00:00:00 2001 From: ispyisail Date: Sat, 24 Oct 2026 07:59:14 +1300 Subject: [PATCH] Skip tst_elementkindinformation where --run does not exist The test drives the real binary through --run. A build without the Qt Qml module has no scripting, so the binary opens and never exits, and the test is killed at the 120 s timeout. That is the Linux CI build: master and every pull request have failed on this test since #1590. Guard it with if(QET_HAS_SCRIPTING), like the other --run tests. Co-Authored-By: Claude Opus 5.5 --- tests/qttest/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/qttest/CMakeLists.txt b/tests/qttest/CMakeLists.txt index 62e5d26ac..930dda036 100644 --- a/tests/qttest/CMakeLists.txt +++ b/tests/qttest/CMakeLists.txt @@ -1221,14 +1221,16 @@ target_compile_definitions(tst_movedterminals PRIVATE # A symbol's kind information (NO/NC/SW/power) is queryable from the # project database once it is placed, not only from a live Element*. # QETZ-DB-FIRST 2d-2a. -add_executable( - tst_elementkindinformation - tst_elementkindinformation.cpp) -add_test(NAME tst_elementkindinformation COMMAND tst_elementkindinformation) -add_dependencies(tst_elementkindinformation qelectrotech) -target_link_libraries(tst_elementkindinformation PRIVATE Qt::Test Qt::Xml) -target_compile_definitions(tst_elementkindinformation PRIVATE - "QET_TEST_BINARY_PATH=\"$\"") +if(QET_HAS_SCRIPTING) + add_executable( + tst_elementkindinformation + tst_elementkindinformation.cpp) + add_test(NAME tst_elementkindinformation COMMAND tst_elementkindinformation) + add_dependencies(tst_elementkindinformation qelectrotech) + target_link_libraries(tst_elementkindinformation PRIVATE Qt::Test Qt::Xml) + target_compile_definitions(tst_elementkindinformation PRIVATE + "QET_TEST_BINARY_PATH=\"$\"") +endif() # Symbols sharing one uuid on a folio keep their wires through save and # reopen (#1408): nets of examples/Habitat-Schemas_developpes.qet.