소스 검색

ERR: Use filepath followed by filename not another filepath

Andy Cedilnik 22 년 전
부모
커밋
eaf25c6739
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/cmCTest.cxx

+ 1 - 1
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()) )
                 {