summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-11 19:58:07 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-11 19:58:07 (GMT)
commit12cc89a8e5261ab08177f4f205b932ee50c26a18 (patch)
treefa2e38da36839a018794b229bf49c7b97fedba45 /Source/cmCTest.cxx
parent87ef95c71549a7aada8be6ed5d7f45f0aefc85ce (diff)
downloadCMake-12cc89a8e5261ab08177f4f205b932ee50c26a18.zip
CMake-12cc89a8e5261ab08177f4f205b932ee50c26a18.tar.gz
CMake-12cc89a8e5261ab08177f4f205b932ee50c26a18.tar.bz2
BUG: Try to fix the problem of bad test names
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 6ec234e..22e0c1e 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -2056,8 +2056,11 @@ void cmCTest::PopulateCustomInteger(cmMakefile* mf, const char* def, int& val)
std::string cmCTest::GetShortPathToFile(const char* cfname)
{
const std::string& sourceDir
- = this->GetCTestConfiguration("SourceDirectory");
- const std::string& buildDir = this->GetCTestConfiguration("BuildDirectory");
+ = cmSystemTools::CollapseFullPath(
+ this->GetCTestConfiguration("SourceDirectory"));
+ const std::string& buildDir
+ = cmSystemTools::CollapseFullPath(
+ this->GetCTestConfiguration("BuildDirectory"));
std::string fname = cmSystemTools::CollapseFullPath(cfname);
// Find relative paths to both directories