summaryrefslogtreecommitdiff
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-11 08:56:25 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-11 08:56:25 -0400
commit47d9021b667f3024087e235f38e9b5ff9a9be876 (patch)
tree1855a017d2d6610a518bffff08bd39992c0d3dae /Source/cmCTest.cxx
parentbe2c468bfeaf0c410fda536a26db52071999be43 (diff)
downloadcmake-47d9021b667f3024087e235f38e9b5ff9a9be876.tar.gz
BUG: The fast mode should not read CTestCustom.ctest files
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx72
1 files changed, 36 insertions, 36 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 018b67825a..839ccedff7 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 )