Selaa lähdekoodia

better args handling for -I options

Ken Martin 21 vuotta sitten
vanhempi
sitoutus
3da0f4940a
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      Source/cmCTest.cxx

+ 5 - 0
Source/cmCTest.cxx

@@ -4857,6 +4857,11 @@ void cmCTest::SetTestsToRunInformation(const char* in)
 
 
 void cmCTest::ExpandTestsToRunInformation(int numTests)
 void cmCTest::ExpandTestsToRunInformation(int numTests)
 {
 {
+  if (this->TestsToRunString.empty())
+    {
+    return;
+    }
+  
   int start = -1;
   int start = -1;
   int end = -1;
   int end = -1;
   int stride = -1;
   int stride = -1;