Home
last modified time | relevance | path

Searched refs:fail_if (Results 1 – 9 of 9) sorted by relevance

/external/libnl/tests/
Dcheck-addr.c20 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()
[all …]
Dcheck-attr.c18 fail_if(nla_attr_size(0) != NLA_HDRLEN, in START_TEST()
20 fail_if(nla_attr_size(1) != NLA_HDRLEN + 1, in START_TEST()
22 fail_if(nla_attr_size(2) != NLA_HDRLEN + 2, in START_TEST()
24 fail_if(nla_attr_size(3) != NLA_HDRLEN + 3, in START_TEST()
26 fail_if(nla_attr_size(4) != NLA_HDRLEN + 4, in START_TEST()
29 fail_if(nla_total_size(1) != NLA_HDRLEN + 4, in START_TEST()
31 fail_if(nla_total_size(2) != NLA_HDRLEN + 4, in START_TEST()
33 fail_if(nla_total_size(3) != NLA_HDRLEN + 4, in START_TEST()
35 fail_if(nla_total_size(4) != NLA_HDRLEN + 4, in START_TEST()
38 fail_if(nla_padlen(1) != 3, in START_TEST()
[all …]
Dutil.h4 fail_if((condition), "nlerr=%d (%s): %s", \
/external/curl/tests/unit/
Dunit1397.c54 fail_if(Curl_cert_hostcheck("xxx.example.com", "www.example.com"), "bad 1");
55 fail_if(Curl_cert_hostcheck("*", "www.example.com"), "bad 2");
56 fail_if(Curl_cert_hostcheck("*.*.com", "www.example.com"), "bad 3");
57 fail_if(Curl_cert_hostcheck("*.example.com", "baa.foo.example.com"), "bad 4");
58 fail_if(Curl_cert_hostcheck("f*.example.com", "baa.example.com"), "bad 5");
59 fail_if(Curl_cert_hostcheck("*.com", "example.com"), "bad 6");
60 fail_if(Curl_cert_hostcheck("*fail.com", "example.com"), "bad 7");
61 fail_if(Curl_cert_hostcheck("*.example.", "www.example."), "bad 8");
62 fail_if(Curl_cert_hostcheck("*.example.", "www.example"), "bad 9");
63 fail_if(Curl_cert_hostcheck("", "www"), "bad 10");
[all …]
Dunit1302.c136 fail_if(decoded, "returned pointer should be NULL");
145 fail_if(decoded, "returned pointer should be NULL");
154 fail_if(decoded, "returned pointer should be NULL");
163 fail_if(decoded, "returned pointer should be NULL");
Dunit1650.c271 fail_if(d.numaddr != 1, "missing address");
280 fail_if(d.numcname, "bad cname counter");
Dunit1395.c92 fail_if(fails, "output mismatched");
Dcurlcheck.h25 #define fail_if(expr, msg) \ macro
DREADME64 fail_if( head == NULL , "head should not be initiated to NULL" );