Add test for omitting the 'Filters' heading when there were none

This commit is contained in:
Martin Hořeňovský 2019-04-16 23:49:22 +02:00
parent ac94bd0520
commit edfac75347
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -322,6 +322,9 @@ endif()
# configure unit tests via CTest # configure unit tests via CTest
add_test(NAME RunTests COMMAND $<TARGET_FILE:SelfTest>) add_test(NAME RunTests COMMAND $<TARGET_FILE:SelfTest>)
set_tests_properties(RunTests PROPERTIES
FAIL_REGULAR_EXPRESSION "Filters:"
)
add_test(NAME ListTests COMMAND $<TARGET_FILE:SelfTest> --list-tests --verbosity high) add_test(NAME ListTests COMMAND $<TARGET_FILE:SelfTest> --list-tests --verbosity high)
set_tests_properties(ListTests PROPERTIES set_tests_properties(ListTests PROPERTIES