From 28f2dfb75244339d49e33fafb7103f5774222d2b Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 17 Feb 2005 16:59:22 -0500 Subject: BUG: Detect when TestsToRunInformation is not set --- Source/CTest/cmCTestTestHandler.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 9e4be52..81bd145 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/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)) -- cgit v0.12