summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCTest.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index b2fa28f..3aa1e67 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -4857,6 +4857,11 @@ void cmCTest::SetTestsToRunInformation(const char* in)
void cmCTest::ExpandTestsToRunInformation(int numTests)
{
+ if (this->TestsToRunString.empty())
+ {
+ return;
+ }
+
int start = -1;
int end = -1;
int stride = -1;