Update comment at isds_get_box_list_archive()
[libisds.git] / test / offline / isds_message_status_change_free.c
blobd8d4067dbc3bb66ed1bd155fdd4dbe0fb3917f48
1 #include "../test.h"
2 #include "isds.h"
4 static int test_isds_message_status_change_free(
5 struct isds_message_status_change **message_status_change) {
6 isds_message_status_change_free(message_status_change);
7 if (!message_status_change) PASS_TEST;
9 if (*message_status_change)
10 FAIL_TEST("isds_message_status_change_free() did not null pointer");
12 PASS_TEST;
16 int main(void) {
18 INIT_TEST("isds_message_status_change_free()");
19 if (isds_init())
20 ABORT_UNIT("isds_init() failed");
22 struct isds_message_status_change *message_status_change = NULL;
24 TEST("NULL", test_isds_message_status_change_free, NULL);
25 TEST("*NULL", test_isds_message_status_change_free, &message_status_change);
27 TEST_CALLOC(message_status_change);
28 TEST("Empty structure", test_isds_message_status_change_free,
29 &message_status_change);
31 TEST_CALLOC(message_status_change);
32 TEST_FILL_STRING(message_status_change->dmID);
33 TEST_CALLOC(message_status_change->time);
34 TEST_FILL_INT(message_status_change->dmMessageStatus);
35 TEST("Full structure", test_isds_message_status_change_free,
36 &message_status_change);
38 isds_cleanup();
39 SUM_TEST();