bts: Fix TC_rach_load_count
The first RACH LOAD IND may only cover a fractional reporting
interval, and hence must be ignored.
Change-Id: I32a703847fbf2b95993e910e6510613902e2bb1a
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 7c17e03..bdd8546 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -1538,6 +1538,12 @@
f_sleep(1.0);
f_l1_tune(L1CTL);
+ /* Skip the first RACH LOAD IND, as it may not have the full slot count (BTS started less than 1s before) */
+ alt {
+ [] RSL_CCHAN.receive(tr_ASP_RSL_UD(tr_RSL_RACH_LOAD_IND(?, ?, ?))) { }
+ [] RSL_CCHAN.receive { repeat }
+ }
+
var GsmFrameNumber fn_last := 0;
for (var integer i := 0; i < 1000; i := i+1) {
var OCT1 ra := f_rnd_ra_cs();