COMP: Return 0 instead of false
This commit is contained in:
parent
386900bfdd
commit
337362dfcf
@ -46,7 +46,7 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
|
|||||||
if ( !handler )
|
if ( !handler )
|
||||||
{
|
{
|
||||||
this->SetError("internal CTest error. Cannot instantiate build handler");
|
this->SetError("internal CTest error. Cannot instantiate build handler");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* ctestBuildCommand
|
const char* ctestBuildCommand
|
||||||
@ -104,7 +104,7 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
|
|||||||
"this is a CMake project, or specify the CTEST_BUILD_COMMAND for "
|
"this is a CMake project, or specify the CTEST_BUILD_COMMAND for "
|
||||||
"cmake or any other project.";
|
"cmake or any other project.";
|
||||||
this->SetError(ostr.str().c_str());
|
this->SetError(ostr.str().c_str());
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||||||
this->SetError("Build directory not specified. Either use BUILD "
|
this->SetError("Build directory not specified. Either use BUILD "
|
||||||
"argument to CTEST_CONFIGURE command or set CTEST_BINARY_DIRECTORY "
|
"argument to CTEST_CONFIGURE command or set CTEST_BINARY_DIRECTORY "
|
||||||
"variable");
|
"variable");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* ctestConfigureCommand
|
const char* ctestConfigureCommand
|
||||||
@ -69,7 +69,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||||||
this->SetError("Source directory not specified. Either use SOURCE "
|
this->SetError("Source directory not specified. Either use SOURCE "
|
||||||
"argument to CTEST_CONFIGURE command or set CTEST_SOURCE_DIRECTORY "
|
"argument to CTEST_CONFIGURE command or set CTEST_SOURCE_DIRECTORY "
|
||||||
"variable");
|
"variable");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
std::string cmakeConfigureCommand = "\"";
|
std::string cmakeConfigureCommand = "\"";
|
||||||
cmakeConfigureCommand += this->CTest->GetCMakeExecutable();
|
cmakeConfigureCommand += this->CTest->GetCMakeExecutable();
|
||||||
@ -86,7 +86,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||||||
this->SetError("Configure command is not specified. If this is a CMake "
|
this->SetError("Configure command is not specified. If this is a CMake "
|
||||||
"project, specify CTEST_CMAKE_GENERATOR, or if this is not CMake "
|
"project, specify CTEST_CMAKE_GENERATOR, or if this is not CMake "
|
||||||
"project, specify CTEST_CONFIGURE_COMMAND.");
|
"project, specify CTEST_CONFIGURE_COMMAND.");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
|
|||||||
{
|
{
|
||||||
this->SetError(
|
this->SetError(
|
||||||
"internal CTest error. Cannot instantiate configure handler");
|
"internal CTest error. Cannot instantiate configure handler");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ cmCTestGenericHandler* cmCTestCoverageCommand::InitializeHandler()
|
|||||||
if ( !handler )
|
if ( !handler )
|
||||||
{
|
{
|
||||||
this->SetError("internal CTest error. Cannot instantiate test handler");
|
this->SetError("internal CTest error. Cannot instantiate test handler");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler()
|
|||||||
if ( !this->CTest->SubmitExtraFiles(newExtraFiles))
|
if ( !this->CTest->SubmitExtraFiles(newExtraFiles))
|
||||||
{
|
{
|
||||||
this->SetError("problem submitting extra files.");
|
this->SetError("problem submitting extra files.");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler()
|
|||||||
if ( !handler )
|
if ( !handler )
|
||||||
{
|
{
|
||||||
this->SetError("internal CTest error. Cannot instantiate submit handler");
|
this->SetError("internal CTest error. Cannot instantiate submit handler");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
@ -59,13 +59,13 @@ cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
|
|||||||
if ( !handler )
|
if ( !handler )
|
||||||
{
|
{
|
||||||
this->SetError("internal CTest error. Cannot instantiate update handler");
|
this->SetError("internal CTest error. Cannot instantiate update handler");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
handler->SetCommand(this);
|
handler->SetCommand(this);
|
||||||
if ( source_dir.empty() )
|
if ( source_dir.empty() )
|
||||||
{
|
{
|
||||||
this->SetError("source directory not specified. Please use SOURCE tag");
|
this->SetError("source directory not specified. Please use SOURCE tag");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
handler->SetOption("SourceDirectory", source_dir.c_str());
|
handler->SetOption("SourceDirectory", source_dir.c_str());
|
||||||
if ( initialCheckoutCommand )
|
if ( initialCheckoutCommand )
|
||||||
@ -84,7 +84,7 @@ cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
|
|||||||
"CTEST_CHECKOUT_COMMAND.";
|
"CTEST_CHECKOUT_COMMAND.";
|
||||||
}
|
}
|
||||||
this->SetError(str.str().c_str());
|
this->SetError(str.str().c_str());
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user