Commit 488aca06 authored by ringst's avatar ringst
Browse files

issues resolved due to compilation in strict compliance standard mode in TTworkbench

parent b35ce52f
Loading
Loading
Loading
Loading
+20 −13
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ group checksTC_IMS_0002 {
	    	InterfaceMonitor p_monitorCompRef
	    ) runs on TestCoordinator return Request {
		   var charstring v_EUT_A_Addr := f_GetEUTAddress(PX_EUT_A);
		   var SipMessage v_sip;    		
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipRequest(mdw_TP_IMS_5011_01_mw(v_EUT_A_Addr))},
@@ -284,7 +285,6 @@ group checksTC_IMS_0002 {
            )
           );
           p_monitorCompRef.done;
		   var SipMessage v_sip;
           f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
           return v_sip.request;
	    }
@@ -297,6 +297,7 @@ group checksTC_IMS_0002 {
	    	InterfaceMonitor p_monitorCompRef
	    ) runs on TestCoordinator return Request{
		   var charstring v_EUT_A_Addr := f_GetEUTAddress(PX_EUT_A);    		
		   var SipMessage v_sip;
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipRequest(mdw_TP_IMS_5011_02_mw(v_EUT_A_Addr))},
@@ -308,7 +309,7 @@ group checksTC_IMS_0002 {
            )
           );
           p_monitorCompRef.done;
		   var SipMessage v_sip;

           f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
           return v_sip.request;
	    }
@@ -321,6 +322,7 @@ group checksTC_IMS_0002 {
	    	InterfaceMonitor p_monitorCompRef
	    ) runs on TestCoordinator return Response {
	       var template SipUrl v_eutBUri := mw_SipUrl_Host(f_GetEUTAddress(PX_EUT_B)); 
		   var SipMessage v_sip;
          p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipResponse(mdw_TP_IMS_5092_01_mw(v_eutBUri))},
@@ -332,7 +334,7 @@ group checksTC_IMS_0002 {
            )
           );
           p_monitorCompRef.done;
		   var SipMessage v_sip;

           f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
           return v_sip.response;
	    }
@@ -345,6 +347,7 @@ group checksTC_IMS_0002 {
	    function f_mtc_check_TP_IMS_5089_01_mw(
	    	InterfaceMonitor p_monitorCompRef
	    ) runs on TestCoordinator return Response {
		  var SipMessage v_sip;
          p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipResponse(mdw_TP_IMS_5089_01_mw)},
@@ -357,7 +360,6 @@ group checksTC_IMS_0002 {
           );
           p_monitorCompRef.done;
           p_monitorCompRef.done;
		   var SipMessage v_sip;
           f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
           return v_sip.response;
	    }
@@ -374,6 +376,9 @@ group checksTC_IMS_0002 {
	       var charstring v_EUTB_PublicId := f_GetEUTPublicId(PX_EUT_B);
		   var template SipUrl v_eutAUri := mw_SipUrl_Host(f_GetEUTAddress(PX_EUT_A));  		
		   var template SipUrl v_eutBUri := mw_SipUrl_Host(f_GetEUTAddress(PX_EUT_B)); 
		   var SipMessage v_sip;
		   var charstring v_Epires200OK;
		   var charstring v_EpiresSubscribe;
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipRequest(mdw_TP_IMS_5044_01_mw(v_eutAUri, v_eutBUri, v_EUTB_PublicId))},
@@ -386,12 +391,11 @@ group checksTC_IMS_0002 {
           );
           p_monitorCompRef.done;

		   var SipMessage v_sip;
           f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
           // Check that the expires header is set to "a value greater than the one 
           // in the Expires_header of the 200_response"
           var charstring v_Epires200OK := p_200OK.msgHeader.expires.deltaSec;
           var charstring v_EpiresSubscribe  := v_sip.request.msgHeader.expires.deltaSec;
		   v_Epires200OK := p_200OK.msgHeader.expires.deltaSec;
		   v_EpiresSubscribe  := v_sip.request.msgHeader.expires.deltaSec;
           if (char2int(v_EpiresSubscribe) <= char2int(v_Epires200OK)) {
             setverdict(fail);
           }
@@ -405,6 +409,9 @@ group checksTC_IMS_0002 {
	    	InterfaceMonitor p_monitorCompRef, Request p_Subscribe
	    ) runs on TestCoordinator  return Response
	    {
		   var SipMessage v_sip;
           var charstring v_Epires200OK;
           var charstring v_EpiresSubscribe;
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipResponse(mw_200OK_Base), mw_SipResponse(mw_202Accepted_Base)},
@@ -417,12 +424,12 @@ group checksTC_IMS_0002 {
           );
     
           p_monitorCompRef.done;
		   var SipMessage v_sip;
		   
           f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
           // Check that the message contains "Expires_header indicating the same or 
           // lower expiry time than specified in the initial SUBSCRIBE"
           var charstring v_Epires200OK := v_sip.response.msgHeader.expires.deltaSec;
           var charstring v_EpiresSubscribe  := p_Subscribe.msgHeader.expires.deltaSec;
		   v_Epires200OK := v_sip.response.msgHeader.expires.deltaSec;
		   v_EpiresSubscribe  := p_Subscribe.msgHeader.expires.deltaSec;          
           if (char2int(v_EpiresSubscribe) >=  char2int(v_Epires200OK)) {
             setverdict(fail);
           }