blob: 45ad926f750b05cf4a584fc282223a85d0b616f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdio.h>
#include <stdbool.h>
#include <setjmp.h>
#include <cmocka.h>
/* A test case that does nothing and succeeds. */
static void bool_always_success(void **state) {
(void) state; /* unused */
bool this_is_true = true;
assert_true(this_is_true);
}
int main(void) {
const struct CMUnitTest tests[] = {
cmocka_unit_test(bool_always_success),
};
return cmocka_run_group_tests(tests, NULL, NULL);
}
|