mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Fix CTest regex error
The desired behaviour was to match a literal "[.]", so the regex has to be escaped as "\\[\\.\\]" -- double backslashes, because it has to be escaped from CMake as well as from the regex engine.
This commit is contained in:
parent
a81c01d4f9
commit
a3876adba6
@ -320,7 +320,7 @@ set_tests_properties(ListTests PROPERTIES
|
|||||||
add_test(NAME ListTags COMMAND $<TARGET_FILE:SelfTest> --list-tags)
|
add_test(NAME ListTags COMMAND $<TARGET_FILE:SelfTest> --list-tags)
|
||||||
set_tests_properties(ListTags PROPERTIES
|
set_tests_properties(ListTags PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "[0-9]+ tags"
|
PASS_REGULAR_EXPRESSION "[0-9]+ tags"
|
||||||
FAIL_REGULAR_EXPRESSION "[.]")
|
FAIL_REGULAR_EXPRESSION "\\[\\.\\]")
|
||||||
|
|
||||||
add_test(NAME ListReporters COMMAND $<TARGET_FILE:SelfTest> --list-reporters)
|
add_test(NAME ListReporters COMMAND $<TARGET_FILE:SelfTest> --list-reporters)
|
||||||
set_tests_properties(ListReporters PROPERTIES PASS_REGULAR_EXPRESSION "Available reporters:")
|
set_tests_properties(ListReporters PROPERTIES PASS_REGULAR_EXPRESSION "Available reporters:")
|
||||||
|
Loading…
Reference in New Issue
Block a user