summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-04-26 13:50:29 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-04-27 10:28:11 +0200
commita5cee4c8e689c01b66af2632b9a6b8a351171b31 (patch)
tree938fbe344018cb42f80a6652095d59ff9efa9dc1
parent8f56ecd65c740ec16ea26de7afd2032ece19560e (diff)
f_TC_egprs_pkt_chan_req_reject: Validate WaitIndication in ImmAssRejpespin/pcu
-rw-r--r--pcu/PCU_Tests.ttcn8
1 files changed, 5 insertions, 3 deletions
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 @@ testcase TC_egprs_pkt_chan_req_two_phase() runs on RAW_PCU_Test_CT {
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 @@ runs on RAW_PCU_Test_CT {
/* 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 @@ testcase TC_egprs_pkt_chan_req_reject_exhaustion() runs on RAW_PCU_Test_CT {
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 @@ testcase TC_egprs_pkt_chan_req_reject_exhaustion() runs on RAW_PCU_Test_CT {
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);
}