summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCTest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 5e538bf..2b3eda5 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -4388,7 +4388,7 @@ int cmCTest::RunCMakeAndTest(std::string* outstring)
failed.push_back(tryPath);
std::string filepath = cmSystemTools::GetFilenamePath(m_TestCommand);
std::string filename = cmSystemTools::GetFilenameName(m_TestCommand);
- tryPath = filepath + "/" + m_ConfigType + "/" + filepath;
+ tryPath = filepath + "/" + m_ConfigType + "/" + filename;
if ( cmSystemTools::FileExists(tryPath.c_str()) &&
!cmSystemTools::FileIsDirectory(tryPath.c_str()) )
{