summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-11 12:56:25 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-11 12:56:25 (GMT)
commit47d9021b667f3024087e235f38e9b5ff9a9be876 (patch)
tree1855a017d2d6610a518bffff08bd39992c0d3dae /Source
parentbe2c468bfeaf0c410fda536a26db52071999be43 (diff)
downloadCMake-47d9021b667f3024087e235f38e9b5ff9a9be876.zip
CMake-47d9021b667f3024087e235f38e9b5ff9a9be876.tar.gz
CMake-47d9021b667f3024087e235f38e9b5ff9a9be876.tar.bz2
BUG: The fast mode should not read CTestCustom.ctest files
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx72
1 files changed, 36 insertions, 36 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 018b678..839cced 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1922,52 +1922,52 @@ int cmCTest::ReadCustomConfigurationFileTree(const char* dir, cmMakefile* mf,
cmCTestLog(this, DEBUG, "* Read custom CTest configuration directory: "
<< dir << std::endl);
- if ( !fast )
+ std::string fname = dir;
+ fname += "/CTestCustom.cmake";
+ cmCTestLog(this, DEBUG, "* Check for file: "
+ << fname.c_str() << std::endl);
+ if ( cmSystemTools::FileExists(fname.c_str()) )
{
- std::string fname = dir;
- fname += "/CTestCustom.cmake";
- cmCTestLog(this, DEBUG, "* Check for file: "
+ cmCTestLog(this, DEBUG, "* Read custom CTest configuration file: "
<< fname.c_str() << std::endl);
- if ( cmSystemTools::FileExists(fname.c_str()) )
+ if ( !mf->ReadListFile(0, fname.c_str()) ||
+ cmSystemTools::GetErrorOccuredFlag() )
{
- cmCTestLog(this, DEBUG, "* Read custom CTest configuration file: "
+ cmCTestLog(this, ERROR_MESSAGE,
+ "Problem reading custom configuration: "
<< fname.c_str() << std::endl);
- if ( !mf->ReadListFile(0, fname.c_str()) ||
- cmSystemTools::GetErrorOccuredFlag() )
- {
- cmCTestLog(this, ERROR_MESSAGE,
- "Problem reading custom configuration: "
- << fname.c_str() << std::endl);
- }
- found = true;
}
+ found = true;
}
- std::string rexpr = dir;
- rexpr += "/CTestCustom.ctest";
- cmCTestLog(this, DEBUG, "* Check for file: "
- << rexpr.c_str() << std::endl);
- if ( !found && cmSystemTools::FileExists(rexpr.c_str()) )
- {
- cmsys::Glob gl;
- gl.RecurseOn();
- gl.FindFiles(rexpr);
- std::vector<std::string>& files = gl.GetFiles();
- std::vector<std::string>::iterator fileIt;
- for ( fileIt = files.begin(); fileIt != files.end();
- ++ fileIt )
- {
- cmCTestLog(this, DEBUG, "* Read custom CTest configuration file: "
- << fileIt->c_str() << std::endl);
- if ( !mf->ReadListFile(0, fileIt->c_str()) ||
- cmSystemTools::GetErrorOccuredFlag() )
- {
- cmCTestLog(this, ERROR_MESSAGE,
- "Problem reading custom configuration: "
+ if ( !fast )
+ {
+ std::string rexpr = dir;
+ rexpr += "/CTestCustom.ctest";
+ cmCTestLog(this, DEBUG, "* Check for file: "
+ << rexpr.c_str() << std::endl);
+ if ( !found && cmSystemTools::FileExists(rexpr.c_str()) )
+ {
+ cmsys::Glob gl;
+ gl.RecurseOn();
+ gl.FindFiles(rexpr);
+ std::vector<std::string>& files = gl.GetFiles();
+ std::vector<std::string>::iterator fileIt;
+ for ( fileIt = files.begin(); fileIt != files.end();
+ ++ fileIt )
+ {
+ cmCTestLog(this, DEBUG, "* Read custom CTest configuration file: "
<< fileIt->c_str() << std::endl);
+ if ( !mf->ReadListFile(0, fileIt->c_str()) ||
+ cmSystemTools::GetErrorOccuredFlag() )
+ {
+ cmCTestLog(this, ERROR_MESSAGE,
+ "Problem reading custom configuration: "
+ << fileIt->c_str() << std::endl);
+ }
}
+ found = true;
}
- found = true;
}
if ( found )