Searched refs:fail_unless (Results 1 - 19 of 19) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/tests/unit/
H A Dunit1301.c34 fail_unless( rc != 0 , "return code should be zero" );
37 fail_unless( rc == 0 , "return code should be zero" );
40 fail_unless( rc == 0 , "return code should be zero" );
43 fail_unless( rc != 0 , "return code should be non-zero" );
46 fail_unless( rc != 0 , "return code should be non-zero" );
49 fail_unless( rc != 0 , "return code should be non-zero" );
52 fail_unless( rc != 0 , "return code should be non-zero" );
H A Dunit1302.c53 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
54 fail_unless(size == 4, "size should be 4");
59 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
60 fail_unless(size == 4, "size should be 4");
65 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
66 fail_unless(size == 4, "size should be 4");
71 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
72 fail_unless(size == 8, "size should be 8");
78 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
79 fail_unless(siz
[all...]
H A Dunit1397.c19 fail_unless( Curl_cert_hostcheck("www.example.com", "www.example.com"), "good 1" );
20 fail_unless( Curl_cert_hostcheck("*.example.com", "www.example.com"), "good 2" );
21 fail_unless( Curl_cert_hostcheck("xxx*.example.com", "xxxwww.example.com"), "good 3" );
22 fail_unless( Curl_cert_hostcheck("f*.example.com", "foo.example.com"), "good 4" );
23 fail_unless( Curl_cert_hostcheck("192.168.0.0", "192.168.0.0"), "good 5" );
41 fail_unless( Curl_cert_hostcheck("fe80::3285:a9ff:fe46:b619", "fe80::3285:a9ff:fe46:b619"), "good 6" );
H A Dunit1304.c58 fail_unless(result == 1, "Host not found should return 1");
60 fail_unless(password[0] == 0, "password should not have been changed");
62 fail_unless(login[0] == 0, "login should not have been changed");
71 fail_unless(result == 0, "Host should be found");
73 fail_unless(password[0] == 0, "password should not have been changed");
75 fail_unless(strncmp(login, "me", 2) == 0, "login should not have been changed");
84 fail_unless(result == 1, "Host should be found");
86 fail_unless(password[0] == 0, "password should not have been changed");
88 fail_unless(strncmp(login, "me", 2) == 0, "login should not have been changed");
98 fail_unless(resul
[all...]
H A Dunit1300.c79 fail_unless(llist->size == 0, "list initial size should be zero");
80 fail_unless(llist->head == NULL, "list head should initiate to NULL");
81 fail_unless(llist->tail == NULL, "list tail should intiate to NULL");
82 fail_unless(llist->dtor == test_curl_llist_dtor,
97 fail_unless(Curl_llist_count(llist) == 1,
100 fail_unless(llist->head->ptr == &unusedData_case1,
103 fail_unless(llist->tail == llist->head,
118 fail_unless(llist->head->next->ptr == &unusedData_case3,
120 fail_unless(llist->tail->ptr == &unusedData_case3,
140 fail_unless(llis
[all...]
H A Dunit1308.c53 fail_unless(rc == 0, "curl_formadd returned error");
57 fail_unless(post == last, "post and last weren't the same");
63 fail_unless(rc == 0, "curl_formadd returned error");
68 fail_unless(rc == 0, "curl_formadd returned error");
72 fail_unless(rc == 0, "curl_formget returned error");
74 fail_unless(total_size == 486, "curl_formget got wrong size back");
87 fail_unless(rc == 0, "curl_formadd returned error");
90 fail_unless(rc == 0, "curl_formget returned error");
91 fail_unless(total_size == 847, "curl_formget got wrong size back");
H A Dunit1396.c87 fail_unless(outlen == list1[i].outlen, "wrong output length returned");
88 fail_unless(!memcmp(out, list1[i].out, list1[i].outlen),
102 fail_unless(outlen == list2[i].outlen, "wrong output length returned");
103 fail_unless(!memcmp(out, list2[i].out, list2[i].outlen),
H A Dcurlcheck.h32 #define fail_unless(expr, msg) \ macro
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/confuse-2.7/tests/
H A Dsuite_list.c40 fail_unless(numopts == 5);
56 fail_unless(cfg_size(cfg, "string") == 3);
57 fail_unless(cfg_opt_size(cfg_getopt(cfg, "string")) == 3);
58 fail_unless(strcmp(cfg_getnstr(cfg, "string", 0), "default1") == 0);
59 fail_unless(strcmp(cfg_getnstr(cfg, "string", 1), "default2") == 0);
60 fail_unless(strcmp(cfg_getnstr(cfg, "string", 2), "default3") == 0);
62 fail_unless(cfg_parse_buf(cfg, buf) == CFG_SUCCESS);
63 fail_unless(cfg_size(cfg, "string") == 2);
64 fail_unless(strcmp(cfg_getstr(cfg, "string"), "manually") == 0);
65 fail_unless(strcm
[all...]
H A Dsuite_dup.c29 fail_unless(cfg_parse(acfg, SRC_DIR "/a.conf") == 0);
32 fail_unless(cfg_parse(bcfg, SRC_DIR "/b.conf") == 0);
35 fail_unless(sec != 0);
36 fail_unless(cfg_size(acfg, "sec") == 1);
37 fail_unless(strcmp(cfg_title(sec), "acfg") == 0);
38 fail_unless(cfg_getint(sec, "a") == 5);
39 fail_unless(cfg_getint(sec, "b") == 2);
42 fail_unless(sec != 0);
43 fail_unless(cfg_size(bcfg, "sec") == 1);
44 fail_unless(strcm
[all...]
H A Dlist_plus_syntax.c12 fail_unless(cfg);
19 fail_unless(rc == CFG_SUCCESS);
21 fail_unless(cfg_size(cfg, "stringproperty") == 3);
23 fail_unless(strcmp(cfg_getnstr(cfg, "stringproperty", 0), "this") == 0);
24 fail_unless(strcmp(cfg_getnstr(cfg, "stringproperty", 1), "that") == 0);
25 fail_unless(strcmp(cfg_getnstr(cfg, "stringproperty", 2), "other") == 0);
32 fail_unless(rc == CFG_SUCCESS);
34 fail_unless(cfg_size(cfg, "stringproperty") == 3);
36 fail_unless(strcmp(cfg_getnstr(cfg, "stringproperty", 0), "this") == 0);
37 fail_unless(strcm
[all...]
H A Dquote_before_print.c20 fail_unless(cfg);
29 fail_unless(fp);
37 fail_unless(cfg);
38 fail_unless(cfg_parse_fp(cfg, fp) == CFG_SUCCESS);
39 fail_unless(fclose(fp) == 0);
42 fail_unless(param);
44 fail_unless(strcmp(param, "text \" with quotes and \\") == 0);
H A Dsuite_single.c124 fail_unless(cfg_size(cfg, "string") == 1);
125 fail_unless(cfg_opt_size(cfg_getopt(cfg, "string")) == 1);
126 fail_unless(strcmp(cfg_getstr(cfg, "string"), "default") == 0);
127 fail_unless(cfg_getnstr(cfg, "string", 0) == cfg_getstr(cfg, "string"));
128 fail_unless(cfg_getnstr(cfg, "string", 1) == 0);
130 fail_unless(cfg_parse_buf(cfg, buf) == CFG_SUCCESS);
131 fail_unless(strcmp(cfg_getstr(cfg, "string"), "set") == 0);
133 fail_unless(strcmp(cfg_getstr(cfg, "string"), "manually set") == 0);
140 fail_unless(cfg_size(cfg, "integer") == 1);
141 fail_unless(cfg_opt_siz
[all...]
H A Dsuite_func.c17 fail_unless(cfg != 0);
18 fail_unless(opt != 0);
19 fail_unless(strcmp(opt->name, "alias") == 0);
20 fail_unless(opt->type == CFGT_FUNC);
21 fail_unless(argv != 0);
22 fail_unless(strcmp(argv[0], "ll") == 0);
23 fail_unless(strcmp(argv[1], "ls -l") == 0);
54 fail_unless(cfg_parse_buf(cfg, buf) == CFG_SUCCESS);
55 fail_unless(func_alias_called == 1);
59 fail_unless(cfg_parse_bu
[all...]
H A Dsuite_validate.c71 fail_unless(action_sec != 0);
75 fail_unless(name_opt != 0);
76 fail_unless(cfg_opt_size(name_opt) == 1);
118 fail_unless(cfg_set_validate_func(cfg, "ip-address", validate_ip) == validate_ip);
120 fail_unless(opt != 0);
121 fail_unless(opt->validcb == validate_ip);
124 fail_unless(cfg_set_validate_func(cfg, "options", validate_action) == validate_action);
126 fail_unless(opt != 0);
127 fail_unless(opt->validcb == validate_action);
130 fail_unless(cfg_set_validate_fun
[all...]
H A Dinclude.c25 fail_unless(cfg);
26 fail_unless(cfg_parse_buf(cfg, buf) == CFG_SUCCESS);
27 fail_unless(cfg_size(cfg, "sec") == 1);
28 fail_unless(cfg_getint(cfg, "sec|a") == 5);
29 fail_unless(cfg_getint(cfg, "sec|b") == 2);
H A Dsection_title_dupes.c29 fail_unless(cfg);
33 fail_unless(rc == CFG_SUCCESS);
35 fail_unless(cfg_size(cfg, "section") == 2);
37 fail_unless(
39 fail_unless(
45 fail_unless(cfg);
48 fail_unless(rc == CFG_PARSE_ERROR);
H A Dcheck_confuse.h7 #define fail_unless(test) \ macro
H A Dsingle_title_sections.c20 fail_unless(cfg);

Completed in 189 milliseconds