aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/channel/channel_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/tests/channel/channel_test.c')
-rw-r--r--openbsc/tests/channel/channel_test.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/openbsc/tests/channel/channel_test.c b/openbsc/tests/channel/channel_test.c
index 924d763ff..20128325e 100644
--- a/openbsc/tests/channel/channel_test.c
+++ b/openbsc/tests/channel/channel_test.c
@@ -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;
}