Browse Source

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
Brad King 6 years ago
parent
commit
74f2c0ea56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/CTest/cmCTestTestHandler.cxx

+ 1 - 1
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;
     }