stif/TestEngine/src/TestModuleController.cpp
changeset 26 4fde310f06fe
parent 0 a03f92240627
child 30 86a2e675b80a
equal deleted inserted replaced
21:f5d4820de50d 26:4fde310f06fe
   248     // Connect to server
   248     // Connect to server
   249     TInt r = iServer.Connect( name, aConfigFile );
   249     TInt r = iServer.Connect( name, aConfigFile );
   250 
   250 
   251     if ( r != KErrNone )
   251     if ( r != KErrNone )
   252         {
   252         {
       
   253         if ( r == KErrBadName )
       
   254             {
       
   255             __TRACE( KError, ( CStifLogger::ERed, _L( "Test Module name or Configuration File name is too long: [%S]" ), &name) );
       
   256             LeaveWithNotifyL( r,  _L( "Test Module name or Configuration File name is too long." ) );
       
   257             }
   253         __TRACE( KError, ( CStifLogger::ERed, _L( "Can't connect to test module [%S], IniFile [%S]" ), &name, &aIniFile ) );
   258         __TRACE( KError, ( CStifLogger::ERed, _L( "Can't connect to test module [%S], IniFile [%S]" ), &name, &aIniFile ) );
   254         LeaveWithNotifyL( r,  _L( "Can't connect to test module" ) );
   259         LeaveWithNotifyL( r,  _L( "Can't connect to test module" ) );
   255         }
   260         }
   256 
   261 
   257     // Open session 
   262     // Open session 
   391 
   396 
   392     // Release the test case array
   397     // Release the test case array
   393     iTestCaseArray.Close();
   398     iTestCaseArray.Close();
   394 
   399 
   395     // Release the config file array
   400     // Release the config file array
       
   401     iConfigFiles.ResetAndDestroy();
   396     iConfigFiles.Close();
   402     iConfigFiles.Close();
   397 
   403 
   398     // Release the config file array
   404     // Release the config file array
   399     iFailedEnumerateConfig.Reset();
   405     iFailedEnumerateConfig.ResetAndDestroy();
   400     iFailedEnumerateConfig.Close();
   406     iFailedEnumerateConfig.Close();
   401     
   407     
   402     // Release the children array
   408     // Release the children array
   403     iChildrenControllers.ResetAndDestroy();
   409     iChildrenControllers.ResetAndDestroy();
   404     iChildrenControllers.Close();
   410     iChildrenControllers.Close();