mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00
cmCTestTestHandler: Remove extra layer of parentheses
A condition in `ComputeTestListForRerunFailed` contained an extra layer of parentheses. Remove them. The condition itself is correct because an empty list means "all tests" so we want to include the current test. Issue: #19610
This commit is contained in:
@@ -893,7 +893,7 @@ void cmCTestTestHandler::ComputeTestListForRerunFailed()
|
|||||||
cnt++;
|
cnt++;
|
||||||
|
|
||||||
// if this test is not in our list of tests to run, then skip it.
|
// if this test is not in our list of tests to run, then skip it.
|
||||||
if ((!this->TestsToRun.empty() && !cmContains(TestsToRun, cnt))) {
|
if (!this->TestsToRun.empty() && !cmContains(this->TestsToRun, cnt)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user