mmtestenv/mmtestfw/Source/TestFramework/TestFrameworkMain.cpp
changeset 45 5accba95f577
parent 0 40261b775718
child 50 948c7f65f6d4
equal deleted inserted replaced
44:e358f888b1fe 45:5accba95f577
    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 
       
    66 /**
    63 /**
    67  *
    64  *
    68  * max length of command line
    65  * max length of command line
    69  *
    66  *
    70  * @xxxx
    67  * @xxxx
   247 	{
   244 	{
   248 	// use TLex to decode the cmd line
   245 	// use TLex to decode the cmd line
   249 	TLex lex(aCmdLine);
   246 	TLex lex(aCmdLine);
   250 	TPtrC token=lex.NextToken();
   247 	TPtrC token=lex.NextToken();
   251 	
   248 	
   252 	// Default is to have 20 second startup delay
       
   253 	TBool delayRequired = ETrue;
       
   254 
       
   255 	// if there is no input filename on the cmd line, panic
   249 	// if there is no input filename on the cmd line, panic
   256 	if (token.Length() == 0) 
   250 	if (token.Length() == 0) 
   257 		UsageL();
   251 		UsageL();
   258 	else
   252 	else
   259 		{
   253 		{
   313 					iTestMatchString = matchString;
   307 					iTestMatchString = matchString;
   314 					}
   308 					}
   315 					break;
   309 					break;
   316 				case 'Q':
   310 				case 'Q':
   317 				case 'q':
   311 				case 'q':
   318 
       
   319 					{
   312 					{
   320 					// Remove the default 20 second delay on startup
   313 					// This flag has been removed.  This block is just to ensure that if used it wont panic
   321 					delayRequired = EFalse;
       
   322 					}
   314 					}
   323 					break;	
   315 					break;
       
   316 
   324 				default:
   317 				default:
   325 					UsageL();
   318 					UsageL();
   326 					return;
   319 					return;
   327 				}
   320 				}
   328 
   321 
   329 			token.Set(lex.NextToken());
   322 			token.Set(lex.NextToken());
   330 			}
       
   331 
       
   332 		if(delayRequired)
       
   333 			{
       
   334 			User::After(KTechViewLoadDelay);
       
   335 			}
   323 			}
   336 
   324 
   337 		// save the input filename
   325 		// save the input filename
   338 		CFileName* scriptFileName = CFileName::NewLC();
   326 		CFileName* scriptFileName = CFileName::NewLC();
   339 		*scriptFileName = token;
   327 		*scriptFileName = token;