4 static int test_isds_event_free(
5 struct isds_event
**event
) {
6 isds_event_free(event
);
10 FAIL_TEST("isds_event_free() did not null pointer");
18 INIT_TEST("isds_event_free()");
20 ABORT_UNIT("isds_init() failed");
22 struct isds_event
*event
= NULL
;
23 TEST("NULL", test_isds_event_free
, NULL
);
24 TEST("*NULL", test_isds_event_free
, &event
);
27 TEST("Empty structure", test_isds_event_free
, &event
);
30 TEST_CALLOC(event
->time
); /* When the event occurred */
31 TEST_FILL_INT(event
->type
);
32 TEST_FILL_STRING(event
->description
);
33 TEST("Full structure", test_isds_event_free
, &event
);