summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestConfigureCommand.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/CTest/cmCTestConfigureCommand.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/CTest/cmCTestConfigureCommand.cxx')
-rw-r--r--Source/CTest/cmCTestConfigureCommand.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestConfigureCommand.cxx b/Source/CTest/cmCTestConfigureCommand.cxx
index 9a30fe8..ce2ff3c 100644
--- a/Source/CTest/cmCTestConfigureCommand.cxx
+++ b/Source/CTest/cmCTestConfigureCommand.cxx
@@ -24,22 +24,26 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
if ( this->Values[ct_BUILD] )
{
this->CTest->SetCTestConfiguration("BuildDirectory",
- this->Values[ct_BUILD]);
+ cmSystemTools::CollapseFullPath(
+ this->Values[ct_BUILD]).c_str());
}
else
{
this->CTest->SetCTestConfiguration("BuildDirectory",
- this->Makefile->GetDefinition("CTEST_BINARY_DIRECTORY"));
+ cmSystemTools::CollapseFullPath(
+ this->Makefile->GetDefinition("CTEST_BINARY_DIRECTORY")).c_str());
}
if ( this->Values[ct_SOURCE] )
{
this->CTest->SetCTestConfiguration("SourceDirectory",
- this->Values[ct_SOURCE]);
+ cmSystemTools::CollapseFullPath(
+ this->Values[ct_SOURCE]).c_str());
}
else
{
this->CTest->SetCTestConfiguration("SourceDirectory",
- this->Makefile->GetDefinition("CTEST_SOURCE_DIRECTORY"));
+ cmSystemTools::CollapseFullPath(
+ this->Makefile->GetDefinition("CTEST_SOURCE_DIRECTORY")).c_str());
}
if ( this->CTest->GetCTestConfiguration("BuildDirectory").empty() )
{