summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-05 14:13:51 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-05 14:13:51 (GMT)
commit1aab11b8db92a63b0006e414d50bf6704e714879 (patch)
tree48caebd57b9043bec6505c349e81e015ea83bbfe /Source
parentb847a6ac6282c27b220177a8ec105044a084b884 (diff)
downloadCMake-1aab11b8db92a63b0006e414d50bf6704e714879.zip
CMake-1aab11b8db92a63b0006e414d50bf6704e714879.tar.gz
CMake-1aab11b8db92a63b0006e414d50bf6704e714879.tar.bz2
ERR: Fix TRUE build problem and replace error couts with cerrs
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestSubmit.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/CTest/cmCTestSubmit.cxx b/Source/CTest/cmCTestSubmit.cxx
index 19a2926..fea7997 100644
--- a/Source/CTest/cmCTestSubmit.cxx
+++ b/Source/CTest/cmCTestSubmit.cxx
@@ -131,7 +131,7 @@ bool cmCTestSubmit::SubmitUsingFTP(const cmStdString& localprefix,
}
// enable uploading
- ::curl_easy_setopt(curl, CURLOPT_UPLOAD, TRUE) ;
+ ::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ;
cmStdString local_file = localprefix + "/" + files[cc];
cmStdString upload_as = url + "/" + remoteprefix + files[cc];
@@ -171,8 +171,8 @@ bool cmCTestSubmit::SubmitUsingFTP(const cmStdString& localprefix,
fclose(ftpfile);
if ( res )
{
- std::cout << " Error when uploading file: " << local_file.c_str() << std::endl;
- std::cout << " Error message was: " << error_buffer << std::endl;
+ std::cerr << " Error when uploading file: " << local_file.c_str() << std::endl;
+ std::cerr << " Error message was: " << error_buffer << std::endl;
*m_LogFile << " Error when uploading file: " << local_file.c_str() << std::endl
<< " Error message was: " << error_buffer << std::endl;
::curl_easy_cleanup(curl);
@@ -228,10 +228,10 @@ bool cmCTestSubmit::SubmitUsingHTTP(const cmStdString& localprefix,
}
/* enable uploading */
- curl_easy_setopt(curl, CURLOPT_UPLOAD, TRUE) ;
+ curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ;
/* HTTP PUT please */
- curl_easy_setopt(curl, CURLOPT_PUT, TRUE);
+ curl_easy_setopt(curl, CURLOPT_PUT, 1);
if ( m_Verbose )
{
::curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
@@ -302,7 +302,7 @@ bool cmCTestSubmit::SubmitUsingHTTP(const cmStdString& localprefix,
fclose(ftpfile);
if ( res )
{
- std::cout << " Error when uploading file: " << local_file.c_str() << std::endl;
+ std::cerr << " Error when uploading file: " << local_file.c_str() << std::endl;
*m_LogFile << " Error when uploading file: " << local_file.c_str() << std::endl
<< " Error message was: " << error_buffer << std::endl;
::curl_easy_cleanup(curl);
@@ -396,7 +396,7 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<cmStdString>& files,
curl_easy_setopt(curl, CURLOPT_URL, turl.c_str());
if ( curl_easy_perform(curl) )
{
- std::cout << " Error when triggering: " << turl.c_str() << std::endl;
+ std::cerr << " Error when triggering: " << turl.c_str() << std::endl;
*m_LogFile << "\tTrigerring failed with error: " << error_buffer << std::endl;
::curl_easy_cleanup(curl);
::curl_global_cleanup();
@@ -486,7 +486,7 @@ bool cmCTestSubmit::SubmitUsingSCP(
retVal = cmsysProcess_GetExitException(cp);
if ( m_Verbose )
{
- std::cout << "\tThere was an exception: " << retVal << std::endl;
+ std::cerr << "\tThere was an exception: " << retVal << std::endl;
}
*m_LogFile << "\tThere was an exception: " << retVal << std::endl;
problems ++;
@@ -495,7 +495,7 @@ bool cmCTestSubmit::SubmitUsingSCP(
{
if ( m_Verbose )
{
- std::cout << "\tThere was a timeout" << std::endl;
+ std::cerr << "\tThere was a timeout" << std::endl;
}
*m_LogFile << "\tThere was a timeout" << std::endl;
problems ++;
@@ -504,7 +504,7 @@ bool cmCTestSubmit::SubmitUsingSCP(
{
if ( m_Verbose )
{
- std::cout << "\tError executing SCP: "
+ std::cerr << "\tError executing SCP: "
<< cmsysProcess_GetErrorString(cp) << std::endl;
}
*m_LogFile << "\tError executing SCP: "