1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#include "config.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdbool.h>
bool uid_wrapper_enabled(void);
static void test_uid_wrapper_enabled(void **state)
{
bool ok;
(void)state; /* unused */
ok = uid_wrapper_enabled();
assert_true(ok);
}
int main(void) {
int rc;
const struct CMUnitTest tests[] = {
cmocka_unit_test(test_uid_wrapper_enabled),
};
rc = cmocka_run_group_tests(tests, NULL, NULL);
return rc;
}
|