diff options
Diffstat (limited to 'openbsc/tests/db')
-rw-r--r-- | openbsc/tests/db/db_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/tests/db/db_test.c b/openbsc/tests/db/db_test.c index 62fbb732e..a02d1f801 100644 --- a/openbsc/tests/db/db_test.c +++ b/openbsc/tests/db/db_test.c @@ -116,6 +116,13 @@ static void test_sms(void) OSMO_ASSERT(sms->user_data_len == strlen("UserData123")); OSMO_ASSERT(strcmp((char *) sms->user_data, "UserData123") == 0); + /* Mark the SMS as delivered */ + db_sms_mark_delivered(sms); + sms_free(sms); + + sms = db_sms_get_unsent_for_subscr(subscr); + OSMO_ASSERT(!sms); + subscr_put(subscr); } |