Changing caption unit tests to use minimal QT_QPA_PLATFORM, to avoid unit test crashes on our gitlab builders.

This commit is contained in:
Jonathan Thomas
2026-05-05 15:05:33 -05:00
parent 033d5777ff
commit 3ebe4ea964
+10 -1
View File
@@ -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})