Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

do not strip spaces from cmake discovered test names

this fixes #1265
Commit
6496c51c95d414046e45d162fb09496370dbac03
Author
Markus Reitboeck ·
Committer
Martin Hořeňovský
Parents
3dd523bdf557

Files · Download .tar.gz

Changes

 contrib/CatchAddTests.cmake | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/contrib/CatchAddTests.cmake b/contrib/CatchAddTests.cmake
index c68921e4..07856130 100644
--- a/contrib/CatchAddTests.cmake
+++ b/contrib/CatchAddTests.cmake
@@ -50,8 +50,7 @@ string(REPLACE "\n" ";" output "${output}")
 
 # Parse output
 foreach(line ${output})
-  # Test name; strip spaces to get just the name...
-  string(REGEX REPLACE " +" "" test "${line}")
+  set(test ${line})
   # ...and add to script
   add_command(add_test
     "${prefix}${test}${suffix}"