mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Add comma-escaping in test specs to ParseAndAddCatchTests.cmake
Fixes #1527
This commit is contained in:
		| @@ -172,6 +172,9 @@ function(ParseFile SourceFile TestTarget) | ||||
|                 PrintDebugMessage("Setting labels to ${Labels}") | ||||
|             endif() | ||||
|  | ||||
|             # Escape commas in the test spec | ||||
|             string(REPLACE "," "\\," Name ${Name}) | ||||
|  | ||||
|             # Add the test and set its properties | ||||
|             add_test(NAME "\"${CTestName}\"" COMMAND ${OptionalCatchTestLauncher} ${TestTarget} ${Name} ${AdditionalCatchParameters}) | ||||
|             # Old CMake versions do not document VERSION_GREATER_EQUAL, so we use VERSION_GREATER with 3.8 instead | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský