#include "unit.h" static void initUninit(void **state) { uiInitOptions o = {0}; assert_null(uiInit(&o)); uiUninit(); } static void initUninitTwice(void **state) { uiInitOptions o = {0}; assert_null(uiInit(&o)); uiUninit(); assert_null(uiInit(&o)); uiUninit(); } int initRunUnitTests(void) { const struct CMUnitTest tests[] = { cmocka_unit_test(initUninit), cmocka_unit_test(initUninitTwice), }; return cmocka_run_group_tests_name("uiInit", tests, NULL, NULL); }