stif/TestScripter/src/TestScripter.cpp
branchRCL_3
changeset 18 3406c99bc375
parent 8 cfe32394fcd5
equal deleted inserted replaced
16:8f8df8006c40 18:3406c99bc375
  3873             _L( "Unknown argument for 'testinterference' idle" ) ) );
  3873             _L( "Unknown argument for 'testinterference' idle" ) ) );
  3874         iRunErrorMessage = KErrMsgStartInterferenceIdleNotDefined;
  3874         iRunErrorMessage = KErrMsgStartInterferenceIdleNotDefined;
  3875         User::Leave( KErrArgument ); // Error in parsing => Leave    	
  3875         User::Leave( KErrArgument ); // Error in parsing => Leave    	
  3876     	}
  3876     	}
  3877     // Convert idle time from milli to micro seconds
  3877     // Convert idle time from milli to micro seconds
  3878    	idle = time * 1000.0;
  3878    	idle = static_cast<TInt>( time * 1000.0);
  3879 
  3879 
  3880     if( idle < 0 )
  3880     if( idle < 0 )
  3881     	{
  3881     	{
  3882         __TRACE( KError, ( 
  3882         __TRACE( KError, ( 
  3883                 _L( "Argument 'testinterference' idle can't be <0" ) ) );
  3883                 _L( "Argument 'testinterference' idle can't be <0" ) ) );
  3899         iRunErrorMessage = KErrMsgStartInterferenceIdleNotDefined;
  3899         iRunErrorMessage = KErrMsgStartInterferenceIdleNotDefined;
  3900         User::Leave( KErrArgument ); // Error in parsing => Leave    	
  3900         User::Leave( KErrArgument ); // Error in parsing => Leave    	
  3901     	}
  3901     	}
  3902     
  3902     
  3903     // Convert active time from milli to micro seconds
  3903     // Convert active time from milli to micro seconds
  3904    	active = time * 1000.0;
  3904    	active = static_cast<TInt>( time * 1000.0 );
  3905    	
  3905    	
  3906     if( active < 0 )
  3906     if( active < 0 )
  3907     	{
  3907     	{
  3908         __TRACE( KError, ( 
  3908         __TRACE( KError, ( 
  3909                 _L( "Argument 'testinterference' active can't be <0" ) ) );
  3909                 _L( "Argument 'testinterference' active can't be <0" ) ) );
  5164     {
  5164     {
  5165     return CTestScripter::NewL();
  5165     return CTestScripter::NewL();
  5166     
  5166     
  5167     }
  5167     }
  5168 
  5168 
  5169 
  5169 // End of File
  5170 //  End of File