Change in osmo-ttcn3-hacks[master]: f_TC_egprs_pkt_chan_req_reject: Validate WaitIndication in ImmAssRej

pespin gerrit-no-reply at lists.osmocom.org
Tue Apr 27 09:33:11 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23904 )

Change subject: f_TC_egprs_pkt_chan_req_reject: Validate WaitIndication in ImmAssRej
......................................................................

f_TC_egprs_pkt_chan_req_reject: Validate WaitIndication in ImmAssRej

Related: OS#3928
Change-Id: Id277f11b411d7b18e3a0445e0c76cbd107c6857d
---
M pcu/PCU_Tests.ttcn
1 file changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index f1506a1..f42a85b 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -3342,7 +3342,8 @@
 
 private function f_TC_egprs_pkt_chan_req_reject(bitstring ra11, uint32_t fn,
 						template IARRestOctets rest := ?,
-						PCUIF_BurstType bt := BURST_TYPE_1)
+						PCUIF_BurstType bt := BURST_TYPE_1,
+						template WaitIndication wi := ?)
 runs on RAW_PCU_Test_CT {
 	var template ReqRefWaitInd tr_ref;
 	var GsmRrMessage rr_msg;
@@ -3361,7 +3362,7 @@
 
 	/* Make sure that Request Reference list contains at least one entry
 	 * with our TDMA frame number, and RA is set to 'reserved' value 127. */
-	tr_ref := tr_ReqRefWaitInd(f_compute_ReqRef(127, fn));
+	tr_ref := tr_ReqRefWaitInd(f_compute_ReqRef(127, fn), wi);
 	if (not match(iar.payload, { *, tr_ref, * })) {
 		setverdict(fail, "Request Reference list does not match");
 		f_shutdown(__BFILE__, __LINE__);
@@ -3439,6 +3440,7 @@
 	var BIT11 ra11;
 
 	info_ind := valueof(ts_PCUIF_INFO_default);
+	info_ind.t3142 := 3;
 
 	/* Only the first TRX is enabled. */
 	f_PCUIF_PDCHMask_set(info_ind, '00000000'B, (1 .. 7));
@@ -3467,7 +3469,7 @@
 	rest := tr_IARRestOctets({ *, tr_ExtRAOpt(substr(ra11, 6, 5)), * });
 
 	/* At this point, the IUT should run out of free USFs */
-	f_TC_egprs_pkt_chan_req_reject(ra11, 1870, rest);
+	f_TC_egprs_pkt_chan_req_reject(ra11, 1870, rest, wi := info_ind.t3142);
 
 	f_shutdown(__BFILE__, __LINE__, final := true);
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23904
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id277f11b411d7b18e3a0445e0c76cbd107c6857d
Gerrit-Change-Number: 23904
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210427/8f9f618d/attachment.htm>


More information about the gerrit-log mailing list