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:
parent
57e8a1fee0
commit
8d878e8a28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue