diff options
author | Brad King <brad.king@kitware.com> | 2019-08-22 15:05:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-26 13:43:46 (GMT) |
commit | 74f2c0ea56fa3b9dce539fe8cbe0f0f7690b658d (patch) | |
tree | 23e227b2a63cecb056c9f1167e7a947ce8a438a3 /Source/CTest | |
parent | 7c2767ef3b575bc4b27d4d57ab9f2d5d1acbd3ce (diff) | |
download | CMake-74f2c0ea56fa3b9dce539fe8cbe0f0f7690b658d.zip CMake-74f2c0ea56fa3b9dce539fe8cbe0f0f7690b658d.tar.gz CMake-74f2c0ea56fa3b9dce539fe8cbe0f0f7690b658d.tar.bz2 |
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
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 8430ef4..db214e1 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -893,7 +893,7 @@ void cmCTestTestHandler::ComputeTestListForRerunFailed() cnt++; // 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; } |