diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/alloc/AllocTest.cpp | 4 | ||||
-rw-r--r-- | tests/ulc/PdchUlcTest.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index fe803e32..e3e9614a 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -59,8 +59,8 @@ static void check_tfi_usage(struct gprs_rlcmac_bts *bts) struct gprs_rlcmac_tbf *tfi_usage[8][8][2][32] = {{{{NULL}}}}; struct llist_head *tbf_lists[2] = { - &bts->ul_tbfs, - &bts->dl_tbfs + &bts->trx[0].ul_tbfs, + &bts->trx[0].dl_tbfs }; struct llist_item *pos; diff --git a/tests/ulc/PdchUlcTest.cpp b/tests/ulc/PdchUlcTest.cpp index 84035d17..c980e332 100644 --- a/tests/ulc/PdchUlcTest.cpp +++ b/tests/ulc/PdchUlcTest.cpp @@ -160,6 +160,7 @@ static void test_reserve_multiple() int _alloc_algorithm_dummy(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf, bool single, int8_t use_tbf) { + tbf->trx = &bts->trx[0]; return 0; } @@ -174,7 +175,6 @@ static void test_fn_wrap_around() struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); struct GprsMs *ms = ms_alloc(bts, 0x12345678); struct gprs_rlcmac_tbf *tbf1 = tbf_alloc_dl_tbf(bts, ms, 0, true); - tbf1->trx = &bts->trx[0]; struct gprs_rlcmac_pdch *pdch = &tbf1->trx->pdch[0]; int rc; uint32_t fn, last_fn; |