From cafd48a7f2b7cbb041b863e9efc75b7fc24bafbf Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 19 Oct 2004 12:38:32 -0400 Subject: EHN: Even more cleanup --- Source/cmCTest.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 00860f6..1de422e 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -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) -- cgit v0.12