diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-01-05 12:20:11 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-01-11 14:35:34 +0000 |
commit | 351e0f10026df2005e9f89e048f18403e0c8015c (patch) | |
tree | 4b527d9652d2921831a5469a0dcbd3272cacc4ea /tests | |
parent | 3f1c43e74bb35172c07905203f7799a38ec3fc37 (diff) |
handover_test: include ack-chan in expect-chan
Change-Id: Ic9f1e94b12334fed6bdce35beef94d8e2968f3ad
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handover/handover_test.c | 16 | ||||
-rw-r--r-- | tests/handover/test_penalty_timer.ho_vty | 1 |
2 files changed, 0 insertions, 17 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index 3c9b4ff57..e3ccb64df 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -971,11 +971,6 @@ static void _expect_chan_activ(struct gsm_lchan *lchan) gsm_lchan_name(lchan), gsm_lchan_name(chan_req_lchan)); exit(1); } -} - -static void _ack_chan_activ(struct gsm_lchan *lchan) -{ - fprintf(stderr, "- Acknowledging channel request on %s\n", gsm_lchan_name(lchan)); got_ho_req = 0; send_chan_act_ack(lchan, 1); } @@ -1005,15 +1000,6 @@ DEFUN(expect_chan, expect_chan_cmd, return CMD_SUCCESS; } -DEFUN(ack_chan, ack_chan_cmd, - "ack-chan", - "ACK a previous Channel Request\n") -{ - OSMO_ASSERT(got_chan_req); - _ack_chan_activ(chan_req_lchan); - return CMD_SUCCESS; -} - DEFUN(expect_ho_req, expect_ho_req_cmd, "expect-ho-req " LCHAN_ARGS, "Expect a handover of a given lchan\n" @@ -1067,7 +1053,6 @@ DEFUN(expect_ho, expect_ho_cmd, struct gsm_lchan *to = parse_lchan_args(argv+4); _expect_chan_activ(to); - _ack_chan_activ(to); _expect_ho_req(from); send_ho_detect(to); send_ho_complete(to, true); @@ -1152,7 +1137,6 @@ static void ho_test_vty_init() install_element(CONFIG_NODE, &congestion_check_cmd); install_element(CONFIG_NODE, &expect_no_chan_cmd); install_element(CONFIG_NODE, &expect_chan_cmd); - install_element(CONFIG_NODE, &ack_chan_cmd); install_element(CONFIG_NODE, &expect_ho_req_cmd); install_element(CONFIG_NODE, &ho_detection_cmd); install_element(CONFIG_NODE, &ho_complete_cmd); diff --git a/tests/handover/test_penalty_timer.ho_vty b/tests/handover/test_penalty_timer.ho_vty index be25c20ae..7b0d266f1 100644 --- a/tests/handover/test_penalty_timer.ho_vty +++ b/tests/handover/test_penalty_timer.ho_vty @@ -7,7 +7,6 @@ create-n-bts 2 set-ts-use trx 0 0 states * TCH/F - - - - - - meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30 expect-chan lchan 1 0 1 0 -ack-chan expect-ho-req lchan 0 0 1 0 ho-failed expect-ts-use trx 0 0 states * TCH/F - - - - - - |