summaryrefslogtreecommitdiff
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-11 15:58:07 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-11 15:58:07 -0400
commit12cc89a8e5261ab08177f4f205b932ee50c26a18 (patch)
treefa2e38da36839a018794b229bf49c7b97fedba45 /Source/cmCTest.cxx
parent87ef95c71549a7aada8be6ed5d7f45f0aefc85ce (diff)
downloadcmake-12cc89a8e5261ab08177f4f205b932ee50c26a18.tar.gz
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 6ec234e424..22e0c1ecd2 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