minor fix for not found executables

This commit is contained in:
Ken Martin 2001-12-03 15:55:28 -05:00
parent 41ed0e2e45
commit 9214ad0ec6
1 changed files with 9 additions and 0 deletions

View File

@ -143,6 +143,15 @@ void ctest::ProcessDirectory(int &passed, int &failed)
// find the test executable
std::string testCommand =
cmSystemTools::EscapeSpaces(this->FindExecutable(args[1].c_str()).c_str());
// continue if we did not find the executable
if (testCommand == "")
{
std::cerr << "Unable to find executable: " <<
args[1].c_str() << "\n";
continue;
}
// add the arguments
std::vector<std::string>::iterator j = args.begin();
++j;