mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:03:34 +03:00
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:
parent
9db7f17135
commit
7d56d2e50d
3 changed files with 5 additions and 14 deletions
|
|
@ -31,11 +31,6 @@ struct chunk_data {
|
|||
int print_content;
|
||||
};
|
||||
|
||||
static
|
||||
long chunk_bgn(const struct curl_fileinfo *finfo, void *ptr, int remains);
|
||||
static
|
||||
long chunk_end(void *ptr);
|
||||
|
||||
static
|
||||
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) {
|
||||
ch_d->print_content = 1;
|
||||
printf("Content:\n-----------------------"
|
||||
"--------------------------------------\n");
|
||||
printf("Content:\n"
|
||||
"-------------------------------------------------------------\n");
|
||||
}
|
||||
if(strcmp(finfo->filename, "someothertext.txt") == 0) {
|
||||
printf("# THIS CONTENT WAS SKIPPED IN CHUNK_BGN CALLBACK #\n");
|
||||
|
|
|
|||
|
|
@ -119,12 +119,6 @@ int test(char *url)
|
|||
|
||||
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(;;) {
|
||||
struct timeval interval;
|
||||
fd_set fdread;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue