diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-12-03 20:55:28 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-12-03 20:55:28 (GMT) |
commit | 9214ad0ec663daaecdf7272175451433c9457254 (patch) | |
tree | e19508a06c77c97abde61841118560145a3ef21a /Source/ctest.cxx | |
parent | 41ed0e2e45f8a0993933aaa4fef47a7804614630 (diff) | |
download | CMake-9214ad0ec663daaecdf7272175451433c9457254.zip CMake-9214ad0ec663daaecdf7272175451433c9457254.tar.gz CMake-9214ad0ec663daaecdf7272175451433c9457254.tar.bz2 |
minor fix for not found executables
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
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<std::string>::iterator j = args.begin(); ++j; |