Home
last modified time | relevance | path

Searched refs:fail_unless (Results 1 – 21 of 21) sorted by relevance

/external/curl/tests/unit/
Dunit1304.c61 fail_unless(result == 1, "Host not found should return 1");
63 fail_unless(password[0] == 0, "password should not have been changed");
65 fail_unless(login[0] == 0, "login should not have been changed");
75 fail_unless(result == 0, "Host should have been found");
77 fail_unless(password[0] == 0, "password should not have been changed");
78 fail_unless(!password_changed, "password should not have been changed");
80 fail_unless(strncmp(login, "me", 2) == 0,
82 fail_unless(!login_changed, "login should not have been changed");
92 fail_unless(result == 1, "Host not found should return 1");
94 fail_unless(password[0] == 0, "password should not have been changed");
[all …]
Dunit1302.c57 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
58 fail_unless(size == 4, "size should be 4");
63 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
64 fail_unless(size == 4, "size should be 4");
69 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
70 fail_unless(size == 4, "size should be 4");
75 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
76 fail_unless(size == 8, "size should be 8");
81 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
82 fail_unless(size == 8, "size should be 8");
[all …]
Dunit1398.c41 fail_unless(rc == 3, "return code should be 3");
42 fail_unless(!strcmp(output, "bug"), "wrong output");
46 fail_unless(rc == 3, "return code should be 3");
47 fail_unless(!strcmp(output, "bug"), "wrong output");
52 fail_unless(rc == 2, "return code should be 2");
53 fail_unless(!strcmp(output, "bu"), "wrong output");
57 fail_unless(rc == 3, "return code should be 3");
58 fail_unless(!strcmp(output, "bug"), "wrong output");
62 fail_unless(rc == 3, "return code should be 3");
63 fail_unless(!strcmp(output, "012"), "wrong output");
[all …]
Dunit1603.c71 fail_unless(nodep, "insertion into hash failed");
73 fail_unless(nodep == key1, "hash retrieval failed");
76 fail_unless(nodep, "insertion into hash failed");
78 fail_unless(nodep == key2, "hash retrieval failed");
81 fail_unless(nodep, "insertion into hash failed");
83 fail_unless(nodep == key3, "hash retrieval failed");
87 fail_unless(nodep, "insertion into hash failed");
89 fail_unless(nodep == key4, "hash retrieval failed");
93 fail_unless(nodep == key1, "hash retrieval failed");
95 fail_unless(nodep == key2, "hash retrieval failed");
[all …]
Dunit1300.c74 fail_unless(llist.size == 0, "list initial size should be zero");
75 fail_unless(llist.head == NULL, "list head should initiate to NULL");
76 fail_unless(llist.tail == NULL, "list tail should intiate to NULL");
77 fail_unless(llist.dtor == test_Curl_llist_dtor,
92 fail_unless(Curl_llist_count(&llist) == 1,
95 fail_unless(llist.head->ptr == &unusedData_case1,
98 fail_unless(llist.tail == llist.head,
112 fail_unless(llist.head->next->ptr == &unusedData_case3,
114 fail_unless(llist.tail->ptr == &unusedData_case3,
128 fail_unless(llist.head->next->ptr == &unusedData_case2,
[all …]
Dunit1652.c85 fail_unless(strcmp(result, input) == 0, "Simple string test");
89 fail_unless(strcmp(result, "Simple Test 42 testing 43\n") == 0,
94 fail_unless(strlen(result) == 0, "Empty string");
96 fail_unless(strcmp(result, "(nil)") == 0, "Passing NULL as string");
102 fail_unless(strlen(result) == 2048, "No truncation of infof input");
103 fail_unless(strcmp(result, input) == 0, "No truncation of infof input");
104 fail_unless(result[sizeof(result) - 1] == '\0',
110 fail_unless(strlen(result) == 2048, "Truncation of infof input 1");
111 fail_unless(result[sizeof(result) - 1] == '\0', "Truncation of infof input 1");
112 fail_unless(strncmp(result + 2045, "...", 3) == 0,
[all …]
Dunit1655.c113 fail_unless(d == playlist[i].expected_result,
121 fail_unless(victim.canary1 == 87,
124 fail_unless(victim.canary2 == 35,
126 fail_unless(victim.canary3 == 41,
131 fail_unless(olen <= sizeof(victim.dohbuffer), "wrote outside bounds");
132 fail_unless(olen > strlen(name), "unrealistic low size");
153 fail_unless(ret == DOH_OK, "sunshine case 1 should pass fine");
155 fail_unless(olen1 > strlen(sunshine1), "bad out length");
160 fail_unless(ret2 == DOH_OK, "dotshine case should pass fine");
162 fail_unless(olen1 == olen2, "olen should not grow for a trailing dot");
[all …]
Dunit1653.c59 fail_unless(ret == CURLUE_OK, "Curl_parse_port returned error");
61 fail_unless(ret != CURLUE_OK, "curl_url_get portnum returned something");
73 fail_unless(ret != CURLUE_OK, "Curl_parse_port true on error");
84 fail_unless(ret != CURLUE_OK, "Curl_parse_port true on error");
96 fail_unless(ret == CURLUE_OK, "Curl_parse_port returned error");
98 fail_unless(ret == CURLUE_OK, "curl_url_get portnum returned error");
99 fail_unless(portnum && !strcmp(portnum, "80"), "Check portnumber");
112 fail_unless(ret == CURLUE_OK, "Curl_parse_port returned error");
124 fail_unless(ret == CURLUE_OK, "Curl_parse_port returned error");
126 fail_unless(ret == CURLUE_OK, "curl_url_get portnum returned error");
[all …]
Dunit1620.c51 fail_unless(rc == CURLE_OK, "Curl_open() failed");
54 fail_unless(rc == CURLE_URL_MALFORMAT,
57 fail_unless(empty->magic == CURLEASY_MAGIC_NUMBER,
62 fail_unless(rc == CURLE_URL_MALFORMAT,
66 fail_unless(rc == CURLE_OK, "Curl_userdefined() failed");
69 fail_unless(rc == CURLE_OK, "Curl_init_do() failed");
73 fail_unless(rc == CURLE_OK,
78 fail_unless(empty->set.str[i] == NULL,
85 fail_unless(rc == CURLE_OK, "Curl_close() failed");
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 == 488, "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 == 851, "curl_formget got wrong size back");
Dunit1301.c34 fail_unless(rc != 0, "return code should be non-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");
Dunit1654.c63 fail_unless(asi->list.size == 4, "wrong number of entries");
72 fail_unless(asi->list.size == 5, "wrong number of entries");
80 fail_unless(asi->list.size == 6, "wrong number of entries");
90 fail_unless(asi->list.size == 8, "wrong number of entries");
99 fail_unless(asi->list.size == 9, "wrong number of entries");
109 fail_unless(asi->list.size == 10, "wrong number of entries");
119 fail_unless(asi->list.size == 12, "wrong number of entries");
128 fail_unless(asi->list.size == 10, "wrong number of entries");
Dunit1397.c43 fail_unless(Curl_cert_hostcheck("www.example.com", "www.example.com"),
45 fail_unless(Curl_cert_hostcheck("*.example.com", "www.example.com"),
47 fail_unless(Curl_cert_hostcheck("xxx*.example.com", "xxxwww.example.com"),
49 fail_unless(Curl_cert_hostcheck("f*.example.com", "foo.example.com"),
51 fail_unless(Curl_cert_hostcheck("192.168.0.0", "192.168.0.0"),
71 fail_unless(Curl_cert_hostcheck("fe80::3285:a9ff:fe46:b619",
Dunit1606.c77 fail_unless(runawhile(41, 41, 40, 0) == 41,
79 fail_unless(runawhile(21, 21, 20, 0) == 21,
81 fail_unless(runawhile(60, 60, 40, 0) == 60,
83 fail_unless(runawhile(50, 50, 40, 0) == 50,
85 fail_unless(runawhile(40, 40, 40, 0) == 99,
87 fail_unless(runawhile(10, 50, 100, 2) == 36,
Dunit1399.c67 fail_unless(usec_matches_seconds(data->progress.t_nslookup, seconds), msg); in expect_timer_seconds()
68 fail_unless(usec_matches_seconds(data->progress.t_connect, seconds), msg); in expect_timer_seconds()
69 fail_unless(usec_matches_seconds(data->progress.t_appconnect, seconds), msg); in expect_timer_seconds()
70 fail_unless(usec_matches_seconds(data->progress.t_pretransfer, seconds), in expect_timer_seconds()
72 fail_unless(usec_matches_seconds(data->progress.t_starttransfer, seconds), in expect_timer_seconds()
Dunit1396.c91 fail_unless(outlen == list1[i].outlen, "wrong output length returned");
92 fail_unless(!memcmp(out, list1[i].out, list1[i].outlen),
106 fail_unless(outlen == list2[i].outlen, "wrong output length returned");
107 fail_unless(!memcmp(out, list2[i].out, list2[i].outlen),
Dunit1605.c50 fail_unless(esc == NULL, "negative string length can't work");
53 fail_unless(esc == NULL, "negative string length can't work");
Dunit1309.c110 fail_unless(root == NULL, "tree not empty after removing all nodes");
140 fail_unless(root == NULL, "tree not empty when it should be");
Dunit1651.c364 fail_unless(result == CURLE_OK, "Curl_extract_certinfo returned error");
Dcurlcheck.h32 #define fail_unless(expr, msg) \ macro
DREADME.md61 fail_unless( size == 0 , "initial size should be zero" );