BUG: empty method on std string is a test, and does not set the string to empty.

This commit is contained in:
Brad King 2004-01-21 14:43:25 -05:00
parent d72f5a0be0
commit ba9687d5cb

View File

@ -3077,7 +3077,7 @@ int cmCTest::RunConfigurationScript()
std::string fullCommand = command; std::string fullCommand = command;
fullCommand += " update "; fullCommand += " update ";
fullCommand += cvsArgs[1]; fullCommand += cvsArgs[1];
output.empty(); output = "";
retVal = 0; retVal = 0;
res = cmSystemTools::RunSingleCommand(fullCommand.c_str(), &output, res = cmSystemTools::RunSingleCommand(fullCommand.c_str(), &output,
&retVal, cvsArgs[0].c_str(), &retVal, cvsArgs[0].c_str(),
@ -3121,7 +3121,7 @@ int cmCTest::RunConfigurationScript()
command = cmakeCmd; command = cmakeCmd;
command += " \""; command += " \"";
command += srcDir; command += srcDir;
output.empty(); output = "";
command += "\""; command += "\"";
retVal = 0; retVal = 0;
res = cmSystemTools::RunSingleCommand(command.c_str(), &output, res = cmSystemTools::RunSingleCommand(command.c_str(), &output,
@ -3136,7 +3136,7 @@ int cmCTest::RunConfigurationScript()
// run ctest // run ctest
command = ctestCmd; command = ctestCmd;
output.empty(); output = "";
retVal = 0; retVal = 0;
res = cmSystemTools::RunSingleCommand(command.c_str(), &output, res = cmSystemTools::RunSingleCommand(command.c_str(), &output,
&retVal, binDir, &retVal, binDir,