summaryrefslogtreecommitdiffstats
path: root/openbsc/tests/oap/oap_client_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/tests/oap/oap_client_test.c')
-rw-r--r--openbsc/tests/oap/oap_client_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/tests/oap/oap_client_test.c b/openbsc/tests/oap/oap_client_test.c
index ab651e63b..e6501cb6d 100644
--- a/openbsc/tests/oap/oap_client_test.c
+++ b/openbsc/tests/oap/oap_client_test.c
@@ -62,6 +62,10 @@ static void test_oap_api(void)
msgb_free(msg_rx);
OSMO_ASSERT(!msg_tx);
+ fprintf(stderr, "- NULL config should disable\n");
+ OSMO_ASSERT( oap_client_init(NULL, state) == 0 );
+ OSMO_ASSERT(state->state == OAP_DISABLED);
+
fprintf(stderr, "- reject messages in disabled state\n");
memset(state, 0, sizeof(*state));
memset(&oap_rx, 0, sizeof(oap_rx));