mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
ctest: Record --schedule-random seed in test log
Issue: #26760 Signed-off-by: Daniel Goldberg <daniel.goldberg@nextsilicon.com>
This commit is contained in:
committed by
Brad King
parent
6639ac87b8
commit
3dc8e59bdc
@@ -1324,7 +1324,12 @@ bool cmCTestTestHandler::ProcessDirectory(std::vector<std::string>& passed,
|
||||
|
||||
bool randomSchedule = this->CTest->GetScheduleType() == "Random";
|
||||
if (randomSchedule) {
|
||||
srand(static_cast<unsigned>(time(nullptr)));
|
||||
unsigned int seed = static_cast<unsigned>(time(nullptr));
|
||||
srand(seed);
|
||||
*this->LogFile
|
||||
<< "Test order random seed: " << seed << std::endl
|
||||
<< "----------------------------------------------------------"
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
for (cmCTestTestProperties& p : this->TestList) {
|
||||
|
||||
Reference in New Issue
Block a user