diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-18 17:14:14 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-20 12:36:21 +0100 |
commit | d1049dc8cc3a150140569b711b7bbf11336211e7 (patch) | |
tree | 5b588a6f36dc21975cd004f9fe5db35efa716485 /tests/ms/MsTest.cpp | |
parent | e91c4c72b17a1d77e23e4c1514db40307ff66a48 (diff) |
Allow multiple bts objects in PCU
This patch doesn't really tests whether osmo-pcu can work on a multi-bts
environment, but it prepares the data structures to be able to do so at
any later point in time.
Change-Id: I6b10913f46c19d438c4e250a436a7446694b725a
Diffstat (limited to 'tests/ms/MsTest.cpp')
-rw-r--r-- | tests/ms/MsTest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ms/MsTest.cpp b/tests/ms/MsTest.cpp index 58579f8b..f459e99c 100644 --- a/tests/ms/MsTest.cpp +++ b/tests/ms/MsTest.cpp @@ -51,7 +51,7 @@ static void test_ms_state() uint32_t tlli = 0xffeeddbb; gprs_rlcmac_dl_tbf *dl_tbf; gprs_rlcmac_ul_tbf *ul_tbf; - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); GprsMs *ms; printf("=== start %s ===\n", __func__); @@ -114,7 +114,7 @@ static void test_ms_callback() uint32_t tlli = 0xffeeddbb; gprs_rlcmac_dl_tbf *dl_tbf; gprs_rlcmac_ul_tbf *ul_tbf; - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); GprsMs *ms; last_cb = CB_UNKNOWN; @@ -188,7 +188,7 @@ static void test_ms_replace_tbf() uint32_t tlli = 0xffeeddbb; gprs_rlcmac_dl_tbf *dl_tbf[2]; gprs_rlcmac_ul_tbf *ul_tbf; - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); GprsMs *ms; printf("=== start %s ===\n", __func__); @@ -262,7 +262,7 @@ static void test_ms_change_tlli() uint32_t start_tlli = 0xaa000000; uint32_t new_ms_tlli = 0xff001111; uint32_t other_sgsn_tlli = 0xff00eeee; - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); GprsMs *ms; printf("=== start %s ===\n", __func__); @@ -374,7 +374,7 @@ static void test_ms_storage() const char *imsi2 = "001001987654322"; gprs_rlcmac_ul_tbf *ul_tbf; - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); GprsMs *ms, *ms_tmp; GprsMsStorage store(bts); @@ -446,7 +446,7 @@ static void test_ms_timeout() uint32_t tlli = 0xffeeddbb; gprs_rlcmac_dl_tbf *dl_tbf; gprs_rlcmac_ul_tbf *ul_tbf; - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); GprsMs *ms; last_cb = CB_UNKNOWN; @@ -499,7 +499,7 @@ static void test_ms_timeout() static void test_ms_cs_selection() { - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); uint32_t tlli = 0xffeeddbb; gprs_rlcmac_dl_tbf *dl_tbf; @@ -544,7 +544,7 @@ static void dump_ms(const GprsMs *ms, const char *pref) static void test_ms_mcs_mode() { - struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu); + struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); uint32_t tlli = 0xdeadbeef; gprs_rlcmac_dl_tbf *dl_tbf; |