diff options
author | Brad King <brad.king@kitware.com> | 2011-02-22 14:32:43 -0500 |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-02-22 14:32:43 -0500 |
commit | 6dc8c252266f2464ce8067eea2897818067be53d (patch) | |
tree | 53b16b247cf0a8a1239298652f2489d544985da4 /Source/CTest | |
parent | 5239fb0dfe5037787098e7b57af74f979c7cae84 (diff) | |
parent | 8af8eab7a43aa80ba89d082e23928e19265be885 (diff) | |
download | cmake-6dc8c252266f2464ce8067eea2897818067be53d.tar.gz |
Merge topic 'fix-11877-sort-tests-correctly'
8af8eab Use stable_sort to preserve test order (#11877)
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index f3a4457162..2cae80215f 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -484,7 +484,7 @@ void cmCTestMultiProcessHandler::CreateTestCostList() } TestComparator comp(this); - std::sort(SortedTests.begin(), SortedTests.end(), comp); + std::stable_sort(SortedTests.begin(), SortedTests.end(), comp); } //--------------------------------------------------------- |