
This changes the way lines in CTestCostData.txt are parsed to allow for spaces in the test name. It does so by looking for space characters from the end; and once two have been found, assumes everything from the beginning up to that second-to-last-space is the test name. Additionally, parsing the file should be much more efficient since there is no string or vector heap allocation per line. The std::string used by the parse function to convert the int and float should be within most standard libraries' small string optimization. Fixes: #26594
10 lines
201 B
CMake
10 lines
201 B
CMake
cmake_minimum_required(VERSION 3.19)
|
|
project (CTestTestScheduler)
|
|
include (CTest)
|
|
|
|
add_executable (Sleep sleep.c)
|
|
|
|
foreach (time RANGE 1 4)
|
|
add_test ("TestSleep ${time}" Sleep ${time})
|
|
endforeach ()
|