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");
18 INIT_TEST("isds_message_status_change_free()");
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
);