From e48c9d13ae37545fecbd9ddde5f326c12ebb9f93 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 2 Mar 2017 02:37:39 +0100 Subject: Make the code work so that the msc_vlr tests pass Change-Id: Ie8814d856bbe4c111007a696a4d26576854c134f --- openbsc/tests/channel/channel_test.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'openbsc/tests/channel') diff --git a/openbsc/tests/channel/channel_test.c b/openbsc/tests/channel/channel_test.c index 76e86a094..fcb2a1e0c 100644 --- a/openbsc/tests/channel/channel_test.c +++ b/openbsc/tests/channel/channel_test.c @@ -31,11 +31,13 @@ #include #include -static int s_end = 0; static struct gsm_subscriber_connection s_conn; static void *s_data; static gsm_cbfn *s_cbfn = NULL; +#if 0 +static int s_end = 0; + /* our handler */ static int subscr_cb(unsigned int hook, unsigned int event, struct msgb *msg, void *data, void *param) { @@ -48,6 +50,7 @@ static int subscr_cb(unsigned int hook, unsigned int event, struct msgb *msg, vo s_end = true; return 0; } +#endif /* mock object for testing, directly invoke the cb... maybe later through the timer */ int paging_request(struct gsm_bts *bts, struct bsc_subscr *bsub, int type, gsm_cbfn *cbfn, void *data) @@ -84,10 +87,10 @@ void test_request_chan(void) struct vlr_subscr *vsub = vlr_subscr_alloc(network->vlr); vsub->lac = 23; - /* Ask for a channel... */ - struct subscr_request *sr; #warning _______________SKIPPING SOME TESTS____________________ #if 0 + /* Ask for a channel... */ + struct subscr_request *sr; sr = subscr_request_channel(vsub, RSL_CHANNEED_TCH_F, subscr_cb, (void*)0x2342L); OSMO_ASSERT(sr); OSMO_ASSERT(s_cbfn); -- cgit v1.2.3