From 3ebe4ea964fdce9da384d32ab6582744cc3df20f Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Tue, 5 May 2026 15:05:33 -0500 Subject: [PATCH] Changing caption unit tests to use minimal QT_QPA_PLATFORM, to avoid unit test crashes on our gitlab builders. --- tests/CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5057e7ce..4a9ca53e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -138,12 +138,21 @@ foreach(tname ${OPENSHOT_TESTS}) openshot ) + set(test_properties + LABELS ${tname} + ) + if(tname STREQUAL "Caption") + list(APPEND test_properties + ENVIRONMENT "QT_QPA_PLATFORM=minimal" + ) + endif() + # Automatically configure CTest targets from Catch2 test cases catch_discover_tests( openshot-${tname}-test TEST_PREFIX ${tname}: PROPERTIES - LABELS ${tname} + ${test_properties} ) list(APPEND CATCH2_TEST_TARGETS openshot-${tname}-test) list(APPEND CATCH2_TEST_NAMES ${tname})