aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-01-17 12:20:56 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2018-01-17 13:12:19 +0100
commitd47106b337f3bbb9ab3ae71efd1d7922907cc47f (patch)
treec8c1612813e49d341fbe76f381b9b14d0b08b8aa
parent17f970fc6556b19a13403f64913c2b9bc9656b9c (diff)
BSSMAP_Emulation: Initialize ExpectTable before use
The assignment_fr_* tests now go through to the point where the BSC sends a CRCX to the mgw. Change-Id: Ic5a128861ae7b1a4cf8158e43c59c52ebd2a20ba
-rw-r--r--library/BSSMAP_Emulation.ttcn7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/BSSMAP_Emulation.ttcn b/library/BSSMAP_Emulation.ttcn
index 153fb86a..8475d552 100644
--- a/library/BSSMAP_Emulation.ttcn
+++ b/library/BSSMAP_Emulation.ttcn
@@ -297,6 +297,7 @@ function main(BssmapOps ops, charstring id) runs on BSSMAP_Emulation_CT {
g_bssmap_id := id;
f_conn_table_init();
+ f_expect_table_init();
while (true) {
var BSSAP_N_UNITDATA_ind ud_ind;
@@ -518,5 +519,11 @@ runs on BSSMAP_Emulation_CT {
setverdict(fail, "No space left in ExpectTable");
}
+private function f_expect_table_init()
+runs on BSSMAP_Emulation_CT {
+ for (var integer i := 0; i < sizeof(ExpectTable); i := i+1) {
+ ExpectTable[i].l3_payload := omit;
+ }
+}
}