Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
20bb6091
Commit
20bb6091
authored
Nov 01, 2013
by
Brad King
💬
Committed by
Kitware Robot
Nov 01, 2013
Browse files
Merge topic 'fix-duplicate-test-run'
2eccdbdc
CTest: prevent tests from being inserted in the cost list twice
parents
e065decd
2eccdbdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CTest/cmCTestMultiProcessHandler.cxx
View file @
20bb6091
...
...
@@ -441,6 +441,8 @@ int cmCTestMultiProcessHandler::SearchByName(std::string name)
//---------------------------------------------------------
void
cmCTestMultiProcessHandler
::
CreateTestCostList
()
{
TestSet
alreadySortedTests
;
std
::
list
<
TestSet
>
priorityStack
;
priorityStack
.
push_back
(
TestSet
());
TestSet
&
topLevel
=
priorityStack
.
back
();
...
...
@@ -456,6 +458,7 @@ void cmCTestMultiProcessHandler::CreateTestCostList()
{
//If the test failed last time, it should be run first.
this
->
SortedTests
.
push_back
(
i
->
first
);
alreadySortedTests
.
insert
(
i
->
first
);
}
else
{
...
...
@@ -513,7 +516,11 @@ void cmCTestMultiProcessHandler::CreateTestCostList()
for
(
TestList
::
const_iterator
j
=
sortedCopy
.
begin
();
j
!=
sortedCopy
.
end
();
++
j
)
{
this
->
SortedTests
.
push_back
(
*
j
);
if
(
alreadySortedTests
.
find
(
*
j
)
==
alreadySortedTests
.
end
())
{
this
->
SortedTests
.
push_back
(
*
j
);
alreadySortedTests
.
insert
(
*
j
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment