From a3876adba67b9e2237f8c46c27ecff7a1f246ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 8 Sep 2018 20:56:31 +0200 Subject: [PATCH] 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. --- projects/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/CMakeLists.txt b/projects/CMakeLists.txt index a2ddb23b..57f1f6f8 100644 --- a/projects/CMakeLists.txt +++ b/projects/CMakeLists.txt @@ -320,7 +320,7 @@ set_tests_properties(ListTests PROPERTIES add_test(NAME ListTags COMMAND $ --list-tags) set_tests_properties(ListTags PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ tags" - FAIL_REGULAR_EXPRESSION "[.]") + FAIL_REGULAR_EXPRESSION "\\[\\.\\]") add_test(NAME ListReporters COMMAND $ --list-reporters) set_tests_properties(ListReporters PROPERTIES PASS_REGULAR_EXPRESSION "Available reporters:")