Browse Source

BUG: Detect when TestsToRunInformation is not set

Andy Cedilnik 21 years ago
parent
commit
28f2dfb752
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/CTest/cmCTestTestHandler.cxx

+ 4 - 0
Source/CTest/cmCTestTestHandler.cxx

@@ -1198,6 +1198,10 @@ void cmCTestTestHandler::SetExcludeRegExp(const char *arg)
 //----------------------------------------------------------------------
 void cmCTestTestHandler::SetTestsToRunInformation(const char* in)
 {
+  if ( !in )
+    {
+    return;
+    }
   this->TestsToRunString = in;
   // if the argument is a file, then read it and use the contents as the string
   if(cmSystemTools::FileExists(in))