File: test_assert_false.c

package info (click to toggle)
cmocka 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,372 kB
  • sloc: ansic: 13,134; xml: 226; makefile: 23
file content (22 lines) | stat: -rw-r--r-- 360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "config.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);
}