test: minor test cleanups

Remove an obsolete block of code in tests 2032 & 576.
Add a comment in test 1474.
This commit is contained in:
Dan Fandrich 2023-09-07 23:32:41 -07:00
parent 9db7f17135
commit 7d56d2e50d
3 changed files with 5 additions and 14 deletions

View File

@ -23,7 +23,9 @@
# builds which are often run on overloaded servers. # builds which are often run on overloaded servers.
# Increasing the --limit-rate would decrease the test time, but at the cost of # Increasing the --limit-rate would decrease the test time, but at the cost of
# becoming even more sensitive to delays (going from 500 msec to 250 msec or # becoming even more sensitive to delays (going from 500 msec to 250 msec or
# less of accepted delay before failure). # less of accepted delay before failure). Adding a --speed-time would increase
# the 1 second delay between writes to longer, but it would also increase the
# total time needed by the test, which is already quite high.
<info> <info>
<keywords> <keywords>
HTTP HTTP

View File

@ -31,11 +31,6 @@ struct chunk_data {
int print_content; int print_content;
}; };
static
long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains);
static
long chunk_end(void *ptr);
static static
long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains) long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains)
{ {
@ -76,8 +71,8 @@ long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains)
} }
if(finfo->filetype == CURLFILETYPE_FILE) { if(finfo->filetype == CURLFILETYPE_FILE) {
ch_d->print_content = 1; ch_d->print_content = 1;
printf("Content:\n-----------------------" printf("Content:\n"
"--------------------------------------\n"); "-------------------------------------------------------------\n");
} }
if(strcmp(finfo->filename, "someothertext.txt") == 0) { if(strcmp(finfo->filename, "someothertext.txt") == 0) {
printf("# THIS CONTENT WAS SKIPPED IN CHUNK_BGN CALLBACK #\n"); printf("# THIS CONTENT WAS SKIPPED IN CHUNK_BGN CALLBACK #\n");

View File

@ -119,12 +119,6 @@ int test(char *url)
multi_init(multi); multi_init(multi);
#ifdef USE_PIPELINING
multi_setopt(multi, CURLMOPT_PIPELINING, 1L);
multi_setopt(multi, CURLMOPT_MAX_HOST_CONNECTIONS, 5L);
multi_setopt(multi, CURLMOPT_MAX_TOTAL_CONNECTIONS, 10L);
#endif
for(;;) { for(;;) {
struct timeval interval; struct timeval interval;
fd_set fdread; fd_set fdread;