summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-02-17 21:59:22 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-02-17 21:59:22 (GMT)
commit28f2dfb75244339d49e33fafb7103f5774222d2b (patch)
treed52029afa082be006e86241b33629b3cbc048049 /Source/CTest
parentd5aafe1b93a72e72803bd636f460e0c93a78aa9e (diff)
downloadCMake-28f2dfb75244339d49e33fafb7103f5774222d2b.zip
CMake-28f2dfb75244339d49e33fafb7103f5774222d2b.tar.gz
CMake-28f2dfb75244339d49e33fafb7103f5774222d2b.tar.bz2
BUG: Detect when TestsToRunInformation is not set
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx4
1 files changed, 4 insertions, 0 deletions
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))