Lines Matching refs:fail_if
20 fail_if(addr == NULL, in START_TEST()
23 fail_if(nl_addr_iszero(addr) == 0, in START_TEST()
26 fail_if(nl_addr_get_family(addr) != AF_UNSPEC, in START_TEST()
29 fail_if(nl_addr_get_prefixlen(addr) != 0, in START_TEST()
32 fail_if(nl_addr_shared(addr), in START_TEST()
35 fail_if(nl_addr_get(addr) != addr, in START_TEST()
38 fail_if(nl_addr_shared(addr) == 0, in START_TEST()
43 fail_if(nl_addr_shared(addr), in START_TEST()
46 fail_if(nl_addr_fill_sockaddr(addr, NULL, 0) == 0, in START_TEST()
60 fail_if(addr == NULL, in START_TEST()
63 fail_if(nl_addr_set_binary_addr(addr, baddr, 4) < 0, in START_TEST()
66 fail_if(nl_addr_get_prefixlen(addr) != 0, in START_TEST()
69 fail_if(nl_addr_get_len(addr) != 4, in START_TEST()
72 fail_if(nl_addr_set_binary_addr(addr, baddr2, 6) == 0, in START_TEST()
75 fail_if(nl_addr_get_len(addr) != 4, in START_TEST()
78 fail_if(nl_addr_guess_family(addr) != AF_INET, in START_TEST()
81 fail_if(memcmp(baddr, nl_addr_get_binary_addr(addr), 4) != 0, in START_TEST()
85 fail_if(addr2 == NULL, in START_TEST()
89 fail_if(nl_addr_get_prefixlen(addr) != 32, in START_TEST()
92 fail_if(nl_addr_cmp(addr, addr2), in START_TEST()
108 fail_if(nl_addr_parse(addr_str, AF_INET6, &addr4) == 0, in START_TEST()
111 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr4) != 0, in START_TEST()
114 fail_if(nl_addr_get_family(addr4) != AF_INET, in START_TEST()
117 fail_if(nl_addr_get_prefixlen(addr4) != 16, in START_TEST()
120 fail_if(nl_addr_iszero(addr4), in START_TEST()
124 fail_if(clone == NULL, in START_TEST()
127 fail_if(nl_addr_cmp(addr4, clone) != 0, in START_TEST()
130 fail_if(nl_addr_fill_sockaddr(addr4, (struct sockaddr *) &sin, &len) != 0, in START_TEST()
133 fail_if(strcmp(nl_addr2str(addr4, buf, sizeof(buf)), addr_str), in START_TEST()
149 fail_if(nl_addr_parse(addr_str, AF_INET, &addr6) == 0, in START_TEST()
152 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr6) != 0, in START_TEST()
155 fail_if(nl_addr_get_family(addr6) != AF_INET6, in START_TEST()
158 fail_if(nl_addr_get_prefixlen(addr6) != 64, in START_TEST()
161 fail_if(nl_addr_iszero(addr6), in START_TEST()
165 fail_if(clone == NULL, in START_TEST()
168 fail_if(nl_addr_cmp(addr6, clone) != 0, in START_TEST()
171 fail_if(nl_addr_fill_sockaddr(addr6, (struct sockaddr *) &sin, &len) != 0, in START_TEST()
174 fail_if(strcmp(nl_addr2str(addr6, buf, sizeof(buf)), addr_str), in START_TEST()
188 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr) != 0, in START_TEST()
191 fail_if(nl_addr_info(addr, &result) != 0, in START_TEST()