Lines Matching refs:tests
91 static const struct testcase tests[] = {
104 int testnum = sizeof(tests) / sizeof(struct testcase);
115 int addressnum = sizeof (tests[i].address) / sizeof (*tests[i].address);
132 list = curl_slist_append(NULL, tests[i].optval);
141 entry_id = (void *)aprintf("%s:%d", tests[i].host, tests[i].port);
155 if(!addr && !tests[i].address[j])
160 fprintf(stderr, "%s:%d tests[%d] failed. Curl_addr2string failed.\n",
166 if(addr && !tests[i].address[j]) {
167 fprintf(stderr, "%s:%d tests[%d] failed. the retrieved addr "
168 "is %s but tests[%d].address[%d] is NULL.\n",
174 if(!addr && tests[i].address[j]) {
175 fprintf(stderr, "%s:%d tests[%d] failed. the retrieved addr "
176 "is NULL but tests[%d].address[%d] is %s.\n",
177 __FILE__, __LINE__, i, i, j, tests[i].address[j]);
182 if(!curl_strequal(ipaddress, tests[i].address[j])) {
183 fprintf(stderr, "%s:%d tests[%d] failed. the retrieved addr "
184 "%s is not equal to tests[%d].address[%d] %s.\n",
185 __FILE__, __LINE__, i, ipaddress, i, j, tests[i].address[j]);
190 if(port != tests[i].port) {
191 fprintf(stderr, "%s:%d tests[%d] failed. the retrieved port "
192 "for tests[%d].address[%d] is %d but tests[%d].port is %d.\n",
193 __FILE__, __LINE__, i, i, j, port, i, tests[i].port);