Skip to content

Commit

Permalink
cmake script to generate ctest definitions from catch tests: fix for …
Browse files Browse the repository at this point in the history
…test case body bracket
  • Loading branch information
Ernst Maurer authored and horenmar committed Apr 24, 2017
1 parent 49d87cf commit 8014bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ParseAndAddCatchTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function(ParseFile SourceFile TestTarget)
RemoveComments(Contents)

# Find definition of test names
string(REGEX MATCHALL "[ \t]*(CATCH_)?(TEST_CASE_METHOD|SCENARIO|TEST_CASE)[ \t]*\\([^\)]+\\)+[ \t]*{+[ \t]*(//[^\n]*[Tt][Ii][Mm][Ee][Oo][Uu][Tt][ \t]*[0-9]+)*" Tests "${Contents}")
string(REGEX MATCHALL "[ \t]*(CATCH_)?(TEST_CASE_METHOD|SCENARIO|TEST_CASE)[ \t]*\\([^\)]+\\)+[ \t\n]*{+[ \t]*(//[^\n]*[Tt][Ii][Mm][Ee][Oo][Uu][Tt][ \t]*[0-9]+)*" Tests "${Contents}")

foreach(TestName ${Tests})
# Strip newlines
Expand Down

0 comments on commit 8014bf1

Please sign in to comment.