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
Mon Apr 26 11:58:11 UTC 2021


pespin has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/04/23904/1

diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 5345bc7..4d96829 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: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210426/bda435fc/attachment.htm>


More information about the gerrit-log mailing list