telephonyprotocols/pdplayer/umts/test/te_spudRSubConn/src/te_spudRSubConnSteps.cpp
--- a/telephonyprotocols/pdplayer/umts/test/te_spudRSubConn/src/te_spudRSubConnSteps.cpp Fri Mar 19 09:55:57 2010 +0200
+++ b/telephonyprotocols/pdplayer/umts/test/te_spudRSubConn/src/te_spudRSubConnSteps.cpp Fri Apr 16 16:12:37 2010 +0300
@@ -354,7 +354,11 @@
TBool CSpudRSubConnTestStepBase::ApplyQoSParametersL(RSubConnection& aPdpContext)
{
TInt qosParamSet = 0;
- ASSERT(GetIntFromConfig(ConfigSection(), _L("QoSParamSet"), qosParamSet));
+ if (!GetIntFromConfig(ConfigSection(), _L("QoSParamSet"), qosParamSet))
+ {
+ User::Leave(KErrNotFound);
+ }
+
ASSERT(qosParamSet >= 0);
switch(qosParamSet)
@@ -774,7 +778,11 @@
WaitForCompletionL(peerStartReq, KErrNone, _L(">>>>>Starting PPP Peer for SPUD primary context"));
TInt stopTypeInt = -1;
- ASSERT(GetIntFromConfig(ConfigSection(), _L("StopType"), stopTypeInt));
+ if(!GetIntFromConfig(ConfigSection(), _L("StopType"), stopTypeInt))
+ {
+ User::Leave(KErrNotFound);
+ }
+
RConnection::TConnStopType stopType = static_cast<RConnection::TConnStopType>(stopTypeInt);
INFO_PRINTF2(_L("Stopping Spud with stop type= %d (0 = EStopNormal, 1 = EStopAuthoritative)"), stopType);
ASSERT(RConnection::EStopNormal == stopType || RConnection::EStopAuthoritative == stopType);