1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

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.
This commit is contained in:
Brian Gianforcaro 2020-05-26 02:43:54 -07:00 committed by Andreas Kling
parent 71deafe476
commit 27360f1f20

View file

@ -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()