diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
commit | 3894027826cbc6688428d8d54e2debe25b1d0661 (patch) | |
tree | 69c3fa8140a365da5b138aa4519b154e2063c7b8 /src/testcurl/test_urlparse.c | |
parent | 710d79a2ea4647d73172ba9aa032a4055bea14a8 (diff) | |
download | libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.tar.gz libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.zip |
tests: properly setup CURL options
Diffstat (limited to 'src/testcurl/test_urlparse.c')
-rw-r--r-- | src/testcurl/test_urlparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c index 9d2d8517..d7c133ae 100644 --- a/src/testcurl/test_urlparse.c +++ b/src/testcurl/test_urlparse.c | |||
@@ -164,7 +164,7 @@ testInternalGet (int poll_flag) | |||
164 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 164 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
165 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 165 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
166 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 166 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
167 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 167 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
168 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 168 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
169 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 169 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
170 | if (oneone) | 170 | if (oneone) |
@@ -174,7 +174,7 @@ testInternalGet (int poll_flag) | |||
174 | /* NOTE: use of CONNECTTIMEOUT without also | 174 | /* NOTE: use of CONNECTTIMEOUT without also |
175 | setting NOSIGNAL results in really weird | 175 | setting NOSIGNAL results in really weird |
176 | crashes on my system!*/ | 176 | crashes on my system!*/ |
177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
178 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 178 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
179 | { | 179 | { |
180 | fprintf (stderr, | 180 | fprintf (stderr, |