TestEGk 1.5a2 : Piccole migliorie.

This commit is contained in:
Dario Sassi
2014-01-12 22:51:48 +00:00
parent 8ae19e69fb
commit dd8a19b1fa
4 changed files with 13 additions and 7 deletions
+7 -4
View File
@@ -52,13 +52,16 @@ TegExecutor::Execute( const string& sCmd1, const string& sCmd2, const STRVECTOR&
// output di debug
sOut = "Cmd = [" + sCmd1 + "][" + sCmd2 + "] Par = [" ;
sOut = sCmd1 ;
if ( ! sCmd2.empty())
sOut += "." + sCmd2 ;
sOut += "( " ;
for ( theConstIter = vsParams.begin() ; theConstIter != vsParams.end() ; ++theConstIter) {
if ( theConstIter != vsParams.begin())
sOut += "][" ;
sOut += ", " ;
sOut += *theConstIter ;
}
sOut += "]" ;
sOut += ")" ;
LOG_DBG_INFO( m_pLogger, sOut.c_str())
// esecuzione comando
@@ -112,7 +115,7 @@ TegExecutor::ExecuteRun( const string& sCmd2, const STRVECTOR& vsParams)
SetEGkLogger( m_pLogger) ;
pGdb->Init() ;
pGdbExec->Init( Get( pGdb)) ;
if ( ! pCmdParser->Init( vsParams[0], Get( pGdbExec), m_pLogger)) {
if ( ! pCmdParser->Init( vsParams[0], Get( pGdbExec), m_pLogger, 1)) {
string sOut = "Error on Parser.Init (" + vsParams[0] + ")" ;
LOG_ERROR( m_pLogger, sOut.c_str())
return false ;