From eb0ced7dc7158e6211621549244e63097e8113b8 Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:41:57 +0100 Subject: [PATCH] Add property to fail QtTest run using CTest when "FAIL!" is in results. --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5f0b739..0c75847 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -30,3 +30,4 @@ target_link_libraries(${PROJECT_TESTS} PRIVATE wble Qt6::Core Qt6::Widgets Qt6:: add_test(NAME ${PROJECT_TESTS} COMMAND ${PROJECT_TESTS}) +set_property(TEST ${PROJECT_TESTS} PROPERTY FAIL_REGULAR_EXPRESSION "FAIL!")