diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-18 14:09:19 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-18 14:19:34 +0200 |
commit | 1212df69b872c8d5509a93a712faee77bb40756b (patch) | |
tree | 0f325f54c39fd49176135c70c9d3233cba977c31 /tests/stubs.c | |
parent | 7a58aa9bc414c11d897fc9a062a5ad7add7b1740 (diff) |
handover_tests: Avoid redefining all bts_model stubs
Change-Id: I366f71474891d32e31dbba1a9fa1f9a510fa0952
Diffstat (limited to 'tests/stubs.c')
-rw-r--r-- | tests/stubs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/stubs.c b/tests/stubs.c index 7c64034b..28a509e2 100644 --- a/tests/stubs.c +++ b/tests/stubs.c @@ -30,13 +30,13 @@ int bts_model_check_oml(struct gsm_bts *bts, uint8_t msg_type, int bts_model_opstart(struct gsm_bts *bts, struct gsm_abis_mo *mo, void *obj) { return 0; } -int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap) +__attribute__((weak)) int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap) { return 0; } uint32_t trx_get_hlayer1(struct gsm_bts_trx *trx) { return 0; } -int bts_model_oml_estab(struct gsm_bts *bts) +__attribute__((weak)) int bts_model_oml_estab(struct gsm_bts *bts) { return 0; } int l1if_set_txpower(struct femtol1_hdl *fl1h, float tx_power) @@ -48,7 +48,7 @@ int bts_model_lchan_deactivate_sacch(struct gsm_lchan *lchan) { return 0; } int bts_model_adjst_ms_pwr(struct gsm_lchan *lchan) { return 0; } -void bts_model_abis_close(struct gsm_bts *bts) +__attribute__((weak)) void bts_model_abis_close(struct gsm_bts *bts) { } int bts_model_ts_disconnect(struct gsm_bts_trx_ts *ts) |