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
This commit is contained in:
Pau Espin 2020-10-29 13:33:39 +01:00 committed by laforge
parent bf03705e4d
commit 7ebc1124ef
1 changed files with 17 additions and 1 deletions

View File

@ -2186,11 +2186,27 @@ testcase TC_egprs_pkt_chan_req_reject_emergency() runs on RAW_PCU_Test_CT {
/* 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 := {