EHN: Even more cleanup

This commit is contained in:
Andy Cedilnik 2004-10-19 12:38:32 -04:00
parent f38a28f044
commit cafd48a7f2
1 changed files with 7 additions and 1 deletions

View File

@ -2164,7 +2164,13 @@ std::string cmCTest::GetShortPathToFile(const char* fname)
return fname;
}
cmSystemTools::ConvertToUnixSlashes(*res);
return "./" + *res;
std::string path = "./" + *res;
if ( path[path.size()-1] == '/' )
{
path = path.substr(0, path.size()-1);
}
return path;
}
std::string cmCTest::GetDartConfiguration(const char *name)