Skip to content
Snippets Groups Projects
Commit 9214ad0e authored by Ken Martin's avatar Ken Martin
Browse files

minor fix for not found executables

parent 41ed0e2e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment