diff options
Diffstat (limited to 'tests/test_assert_false.c')
-rw-r--r-- | tests/test_assert_false.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test_assert_false.c b/tests/test_assert_false.c new file mode 100644 index 0000000..db57e7a --- /dev/null +++ b/tests/test_assert_false.c @@ -0,0 +1,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(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), + }; + + return cmocka_run_group_tests(tests, NULL, NULL); +} |