BUG: Detect when TestsToRunInformation is not set
This commit is contained in:
parent
d5aafe1b93
commit
28f2dfb752
|
@ -1198,6 +1198,10 @@ void cmCTestTestHandler::SetExcludeRegExp(const char *arg)
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
void cmCTestTestHandler::SetTestsToRunInformation(const char* in)
|
void cmCTestTestHandler::SetTestsToRunInformation(const char* in)
|
||||||
{
|
{
|
||||||
|
if ( !in )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
this->TestsToRunString = in;
|
this->TestsToRunString = in;
|
||||||
// if the argument is a file, then read it and use the contents as the string
|
// if the argument is a file, then read it and use the contents as the string
|
||||||
if(cmSystemTools::FileExists(in))
|
if(cmSystemTools::FileExists(in))
|
||||||
|
|
Loading…
Reference in New Issue