diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-03-17 12:22:40 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-03-17 13:40:03 +0100 |
commit | d8cd756da48bcff9f9caf9e64fc0af047a165b60 (patch) | |
tree | 136d09901ae8420803500d92646944376ae21f59 /tests/agch | |
parent | 7c4a22dbc48f51eb199766bf1b29e061bf765cbd (diff) |
Get rid of 'struct gsm_bts_role_bts'
gsm_bts_role_bts was introduced at a time when we still shared
gsm_data_shared.[ch] between BSC and BTS, and where we then subsequently
needed a BTS-private structure. Since that sharing was abandoned quite
some time ago, we can merge gsm_bts_role_bts into gsm_bts and do away
with the bts/btsb dualism in a lot of the code.
Change-Id: I4fdd601ea873d9697f89a748cc77bcf7c978fa3e
Diffstat (limited to 'tests/agch')
-rw-r--r-- | tests/agch/agch_test.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/tests/agch/agch_test.c b/tests/agch/agch_test.c index 89f113ab..6efbc248 100644 --- a/tests/agch/agch_test.c +++ b/tests/agch/agch_test.c @@ -29,7 +29,6 @@ #include <unistd.h> static struct gsm_bts *bts; -static struct gsm_bts_role_bts *btsb; static int count_imm_ass_rej_refs(struct gsm48_imm_ass_rej *rej) { @@ -116,11 +115,11 @@ static void test_agch_queue(void) g_time.t3 = 6; printf("Testing AGCH messages queue handling.\n"); - btsb->agch_queue.max_length = 32; + bts->agch_queue.max_length = 32; - btsb->agch_queue.low_level = 30; - btsb->agch_queue.high_level = 30; - btsb->agch_queue.thresh_level = 60; + bts->agch_queue.low_level = 30; + bts->agch_queue.high_level = 30; + bts->agch_queue.thresh_level = 60; for (round = 1; round <= num_rounds; round++) { for (idx = 0; idx < num_ima_per_round; idx++) { @@ -143,10 +142,10 @@ static void test_agch_queue(void) "dropped %"PRIu64", merged %"PRIu64", rejected %"PRIu64", " "ag-res %"PRIu64", non-res %"PRIu64"\n", count, imm_ass_count, imm_ass_rej_count, imm_ass_rej_ref_count, - btsb->agch_queue.max_length, btsb->agch_queue.length, - btsb->agch_queue.dropped_msgs, btsb->agch_queue.merged_msgs, - btsb->agch_queue.rejected_msgs, btsb->agch_queue.agch_msgs, - btsb->agch_queue.pch_msgs); + bts->agch_queue.max_length, bts->agch_queue.length, + bts->agch_queue.dropped_msgs, bts->agch_queue.merged_msgs, + bts->agch_queue.rejected_msgs, bts->agch_queue.agch_msgs, + bts->agch_queue.pch_msgs); imm_ass_count = 0; imm_ass_rej_count = 0; @@ -182,10 +181,10 @@ static void test_agch_queue(void) "dropped %"PRIu64", merged %"PRIu64", rejected %"PRIu64", " "ag-res %"PRIu64", non-res %"PRIu64"\n", multiframes, imm_ass_count, imm_ass_rej_count, imm_ass_rej_ref_count, - btsb->agch_queue.max_length, btsb->agch_queue.length, - btsb->agch_queue.dropped_msgs, btsb->agch_queue.merged_msgs, - btsb->agch_queue.rejected_msgs, btsb->agch_queue.agch_msgs, - btsb->agch_queue.pch_msgs); + bts->agch_queue.max_length, bts->agch_queue.length, + bts->agch_queue.dropped_msgs, bts->agch_queue.merged_msgs, + bts->agch_queue.rejected_msgs, bts->agch_queue.agch_msgs, + bts->agch_queue.pch_msgs); } static void test_agch_queue_length_computation(void) @@ -231,7 +230,6 @@ int main(int argc, char **argv) exit(1); } - btsb = bts_role_bts(bts); test_agch_queue_length_computation(); test_agch_queue(); printf("Success\n"); |