From 9214ad0ec663daaecdf7272175451433c9457254 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 3 Dec 2001 15:55:28 -0500 Subject: minor fix for not found executables --- Source/ctest.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/ctest.cxx b/Source/ctest.cxx index b8f5b9c..2639900 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -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::iterator j = args.begin(); ++j; -- cgit v0.12