blob: 863bd5d39a809a168ec838fda1983cef63bd521f (
plain)
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
|
#include "config.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdint.h>
#include <cmocka.h>
#include <cmocka_private.h>
static void test_assert_false_fail(void **state)
{
int x = 10;
(void)state; /* unused */
assert_false(x == 10);
}
int main(void)
{
const struct CMUnitTest tests[] = {
cmocka_unit_test(test_assert_false_fail),
};
return cmocka_run_group_tests(tests, NULL, NULL);
}
|