From 27360f1f2050e37c44a1576282aeeed0a05e2acb Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Tue, 26 May 2020 02:43:54 -0700 Subject: [PATCH] Build: Fix cmake test runner, so it knows when tests fail The CMake runner looks at the return code if you don't set the pattern. Since the AK test suite setup doesn't use return codes, we were missing test failures. --- AK/Tests/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AK/Tests/CMakeLists.txt b/AK/Tests/CMakeLists.txt index 040abb47b7..6d898903b1 100644 --- a/AK/Tests/CMakeLists.txt +++ b/AK/Tests/CMakeLists.txt @@ -9,4 +9,11 @@ foreach(source ${AK_TEST_SOURCES}) COMMAND ${name} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + + set_tests_properties( + ${name} + PROPERTIES + FAIL_REGULAR_EXPRESSION + "FAIL" + ) endforeach()