Change in osmo-ttcn3-hacks[master]: pcu: Fix TC_egprs_pkt_chan_req_reject_exhaustion

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Thu Oct 29 13:10:21 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20964 )


Change subject: pcu: Fix TC_egprs_pkt_chan_req_reject_exhaustion
......................................................................

pcu: Fix TC_egprs_pkt_chan_req_reject_exhaustion

older versions of osmo-pcu were broken and were only allocating TBFs in
the first TRX available. This is now fixed and hence osmo-pcu tries
better to allocate TBFs across different TRX. That's why the test needs
to be fixed to set up only 1 TRX in order to run into the same scenario.

Change-Id: I3f6633950bb89dde3f87a237359497f5b23e0fee
---
M pcu/PCU_Tests.ttcn
1 file changed, 17 insertions(+), 1 deletion(-)



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

diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 67d4484..0a44a18 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -2186,11 +2186,27 @@
 
 /* Make sure that IUT responds with RR Immediate Assignment Reject due to exhaustion. */
 testcase TC_egprs_pkt_chan_req_reject_exhaustion() runs on RAW_PCU_Test_CT {
+	var PCUIF_info_ind info_ind;
 	var template IARRestOctets rest;
 	var BIT11 ra11;
 
+	info_ind := valueof(ts_PCUIF_INFO_default);
+	if (PCUIF_Types.mp_pcuif_version >= 10) {
+		/* Only the first TRX is enabled. */
+		for (var integer i := 0; i < lengthof(info_ind.trx.v10); i := i + 1) {
+			info_ind.trx.v10[i].pdch_mask := '00000000'B;
+		}
+		info_ind.trx.v10[0].pdch_mask := '00000001'B;
+	} else {
+		/* Only the first TRX is enabled. */
+		for (var integer i := 0; i < lengthof(info_ind.trx.v09); i := i + 1) {
+			info_ind.trx.v09[i].pdch_mask := '00000000'B;
+		}
+		info_ind.trx.v09[0].pdch_mask := '00000001'B;
+	}
+
 	/* Initialize the PCU interface abstraction */
-	f_init_raw(testcasename());
+	f_init_raw(testcasename(), info_ind);
 
 	var EGPRSPktChRequest req := {
 		one_phase := {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20964
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: I3f6633950bb89dde3f87a237359497f5b23e0fee
Gerrit-Change-Number: 20964
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/20201029/3cbca38a/attachment.htm>


More information about the gerrit-log mailing list