diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-05 19:10:56 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-07 14:08:29 +0200 |
commit | eb36819b4d093da0c117f89caf05aef9751eb518 (patch) | |
tree | 81530533365a997fba8509ac8a2411681e68d7ad /tests/acc | |
parent | 40c7410f9eb6961d5288c4bbf9072832b2b09ea1 (diff) |
Get rid of lots of stubs [4/4]
These are not needed anymore since we re-introduced libbsc, specially to
avoid all this churn.
Some specific methods are explicitly required to be overwritten by
tests, so we specificially mark those with __attribute__((weak)) in
order to be able to overwrite them.
This is the last step towards fixing interdependency mess of symbols and
stubs, and requires previous patches in order to have tests apssing
fine.
Change-Id: Ic7401b8a6eb903882e30fda1cf091ac99a254ef0
Diffstat (limited to 'tests/acc')
-rw-r--r-- | tests/acc/acc_test.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/acc/acc_test.c b/tests/acc/acc_test.c index 759ff139f..6357d4b4f 100644 --- a/tests/acc/acc_test.c +++ b/tests/acc/acc_test.c @@ -524,8 +524,8 @@ int main(int argc, char **argv) return EXIT_SUCCESS; } -/* Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() - * is called which ends up calling pcu_info_update */ +/* stub: Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() + * is called which ends up calling pcu_info_update. */ void pcu_info_update(struct gsm_bts *bts) { struct gsm48_rach_control rach_control = {0}; @@ -545,15 +545,15 @@ void pcu_info_update(struct gsm_bts *bts) { ); } - -struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *net) { - OSMO_ASSERT(0); -} - -bool on_gsm_ts_init(struct gsm_bts_trx_ts *ts) { return true; } -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } +/* stub: Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() + * is called which ends up calling rsl_bcch_info. We need to return success to + * have pcu_info_update() called. */ int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) { return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } + +/* stub: Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() + * is called which ends up calling rsl_sacch_filling. We need to return success to + * have pcu_info_update() called. */ +int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, + const uint8_t *data, int len) +{ return 0; } |