channel test: prepare to add another test function

Move the main() guts to test_request_chan(), so that I can add another test in
an upcoming commit.

Change-Id: I1349d0f416806416080d4667ad697f7db1ea252d
This commit is contained in:
Neels Hofmeyr 2016-09-25 15:47:36 +02:00 committed by Harald Welte
parent 57e8a1fee0
commit 8d878e8a28
1 changed files with 8 additions and 3 deletions

View File

@ -58,13 +58,11 @@ int paging_request(struct gsm_bts *bts, struct gsm_subscriber *subscriber, int t
}
int main(int argc, char **argv)
void test_request_chan(void)
{
struct gsm_network *network;
struct gsm_bts *bts;
osmo_init_logging(&log_info);
printf("Testing the gsm_subscriber chan logic\n");
/* Create a dummy network */
@ -90,6 +88,13 @@ int main(int argc, char **argv)
s_cbfn(101, 200, (void*)0x1323L, &s_conn, s_data);
OSMO_ASSERT(s_end);
}
int main(int argc, char **argv)
{
osmo_init_logging(&log_info);
test_request_chan();
return EXIT_SUCCESS;
}