summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestScriptHandler.cxx
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2022-06-12 17:29:25 (GMT)
committerBrad King <brad.king@kitware.com>2022-06-13 13:05:24 (GMT)
commit98a10290a854a78cbe0a804a3d69313acd6f4339 (patch)
tree946c4f2444fb4be62d25906875a8e6517b1c1f86 /Source/CTest/cmCTestScriptHandler.cxx
parent7116712771538be9f093b6ae7f4ef5ce38fc3679 (diff)
downloadCMake-98a10290a854a78cbe0a804a3d69313acd6f4339.zip
CMake-98a10290a854a78cbe0a804a3d69313acd6f4339.tar.gz
CMake-98a10290a854a78cbe0a804a3d69313acd6f4339.tar.bz2
cmSystemTools: Fix 'ErrorOccurred' spelling
Rename the booleans 's_ErrorOccured' and 's_FatalErrorOccured' to 's_ErrorOccurred' and 's_FatalErrorOccurred', respectively. Rename the getters and setters to 'Get[Fatal]ErrorOccurred' and 'Set[Fatal]ErrorOccurred', and fix all uses across the codebase.
Diffstat (limited to 'Source/CTest/cmCTestScriptHandler.cxx')
-rw-r--r--Source/CTest/cmCTestScriptHandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx
index 16c0a0e..5a66f82 100644
--- a/Source/CTest/cmCTestScriptHandler.cxx
+++ b/Source/CTest/cmCTestScriptHandler.cxx
@@ -277,7 +277,7 @@ void cmCTestScriptHandler::CreateCMake()
int cmCTestScriptHandler::ReadInScript(const std::string& total_script_arg)
{
// Reset the error flag so that the script is read in no matter what
- cmSystemTools::ResetErrorOccuredFlag();
+ cmSystemTools::ResetErrorOccurredFlag();
// if the argument has a , in it then it needs to be broken into the fist
// argument (which is the script) and the second argument which will be
@@ -341,7 +341,7 @@ int cmCTestScriptHandler::ReadInScript(const std::string& total_script_arg)
std::string systemFile =
this->Makefile->GetModulesFile("CTestScriptMode.cmake");
if (!this->Makefile->ReadListFile(systemFile) ||
- cmSystemTools::GetErrorOccuredFlag()) {
+ cmSystemTools::GetErrorOccurredFlag()) {
cmCTestLog(this->CTest, ERROR_MESSAGE,
"Error in read:" << systemFile << "\n");
return 2;
@@ -356,10 +356,10 @@ int cmCTestScriptHandler::ReadInScript(const std::string& total_script_arg)
// finally read in the script
if (!this->Makefile->ReadListFile(script) ||
- cmSystemTools::GetErrorOccuredFlag()) {
+ cmSystemTools::GetErrorOccurredFlag()) {
// Reset the error flag so that it can run more than
// one script with an error when you use ctest_run_script.
- cmSystemTools::ResetErrorOccuredFlag();
+ cmSystemTools::ResetErrorOccurredFlag();
return 2;
}