summaryrefslogtreecommitdiff
path: root/Source/CTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-02-22 14:32:43 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2011-02-22 14:32:43 -0500
commit6dc8c252266f2464ce8067eea2897818067be53d (patch)
tree53b16b247cf0a8a1239298652f2489d544985da4 /Source/CTest
parent5239fb0dfe5037787098e7b57af74f979c7cae84 (diff)
parent8af8eab7a43aa80ba89d082e23928e19265be885 (diff)
downloadcmake-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.cxx2
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);
}
//---------------------------------------------------------