mmtestenv/mmtestfw/Source/TestFramework/TestFrameworkMain.cpp
branchRCL_3
changeset 50 948c7f65f6d4
parent 49 735348f59235
equal deleted inserted replaced
49:735348f59235 50:948c7f65f6d4
    58 #else
    58 #else
    59 _LIT(KTxtBuild,"urel");
    59 _LIT(KTxtBuild,"urel");
    60 #endif
    60 #endif
    61 
    61 
    62 
    62 
       
    63 //A temporary fix: 20 seconds delay for Techview to get completely loaded.
       
    64 const TInt KTechViewLoadDelay = 20000000;
       
    65 
    63 /**
    66 /**
    64  *
    67  *
    65  * max length of command line
    68  * max length of command line
    66  *
    69  *
    67  * @xxxx
    70  * @xxxx
   244 	{
   247 	{
   245 	// use TLex to decode the cmd line
   248 	// use TLex to decode the cmd line
   246 	TLex lex(aCmdLine);
   249 	TLex lex(aCmdLine);
   247 	TPtrC token=lex.NextToken();
   250 	TPtrC token=lex.NextToken();
   248 	
   251 	
       
   252 	// Default is to have 20 second startup delay
       
   253 	TBool delayRequired = ETrue;
       
   254 
   249 	// if there is no input filename on the cmd line, panic
   255 	// if there is no input filename on the cmd line, panic
   250 	if (token.Length() == 0) 
   256 	if (token.Length() == 0) 
   251 		UsageL();
   257 		UsageL();
   252 	else
   258 	else
   253 		{
   259 		{
   307 					iTestMatchString = matchString;
   313 					iTestMatchString = matchString;
   308 					}
   314 					}
   309 					break;
   315 					break;
   310 				case 'Q':
   316 				case 'Q':
   311 				case 'q':
   317 				case 'q':
       
   318 
   312 					{
   319 					{
   313 					// This flag has been removed.  This block is just to ensure that if used it wont panic
   320 					// Remove the default 20 second delay on startup
       
   321 					delayRequired = EFalse;
   314 					}
   322 					}
   315 					break;
   323 					break;	
   316 
       
   317 				default:
   324 				default:
   318 					UsageL();
   325 					UsageL();
   319 					return;
   326 					return;
   320 				}
   327 				}
   321 
   328 
   322 			token.Set(lex.NextToken());
   329 			token.Set(lex.NextToken());
       
   330 			}
       
   331 
       
   332 		if(delayRequired)
       
   333 			{
       
   334 			User::After(KTechViewLoadDelay);
   323 			}
   335 			}
   324 
   336 
   325 		// save the input filename
   337 		// save the input filename
   326 		CFileName* scriptFileName = CFileName::NewLC();
   338 		CFileName* scriptFileName = CFileName::NewLC();
   327 		*scriptFileName = token;
   339 		*scriptFileName = token;