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
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 := {