[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 49/208: test1521: test getinfo's OFF_T types too
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 49/208: test1521: test getinfo's OFF_T types too |
Date: |
Wed, 09 Aug 2017 17:34:06 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.
commit 176ec5138277fcda592fa604e499dfd6819eece9
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Jun 19 09:31:37 2017 +0200
test1521: test getinfo's OFF_T types too
Closes #1588
---
tests/libtest/lib1521.c | 19 +++++++++++++++++++
tests/libtest/mk-lib1521.pl | 4 ++++
2 files changed, 23 insertions(+)
diff --git a/tests/libtest/lib1521.c b/tests/libtest/lib1521.c
index de68e7a74..15dee2855 100644
--- a/tests/libtest/lib1521.c
+++ b/tests/libtest/lib1521.c
@@ -118,6 +118,7 @@ int test(char *URL)
struct data object;
char *charp;
long val;
+ curl_off_t oval;
double dval;
curl_socket_t sockfd;
struct curl_certinfo *certinfo;
@@ -2335,15 +2336,27 @@ int test(char *URL)
res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &dval);
if(UNEX(res)) {
geterr("SIZE_UPLOAD", res, __LINE__); goto test_cleanup; }
+ res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD_T, &oval);
+ if(UNEX(res)) {
+ geterr("SIZE_UPLOAD_T", res, __LINE__); goto test_cleanup; }
res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &dval);
if(UNEX(res)) {
geterr("SIZE_DOWNLOAD", res, __LINE__); goto test_cleanup; }
+ res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD_T, &oval);
+ if(UNEX(res)) {
+ geterr("SIZE_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD, &dval);
if(UNEX(res)) {
geterr("SPEED_DOWNLOAD", res, __LINE__); goto test_cleanup; }
+ res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD_T, &oval);
+ if(UNEX(res)) {
+ geterr("SPEED_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &dval);
if(UNEX(res)) {
geterr("SPEED_UPLOAD", res, __LINE__); goto test_cleanup; }
+ res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD_T, &oval);
+ if(UNEX(res)) {
+ geterr("SPEED_UPLOAD_T", res, __LINE__); goto test_cleanup; }
res = curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &val);
if(UNEX(res)) {
geterr("HEADER_SIZE", res, __LINE__); goto test_cleanup; }
@@ -2359,9 +2372,15 @@ int test(char *URL)
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &dval);
if(UNEX(res)) {
geterr("CONTENT_LENGTH_DOWNLOAD", res, __LINE__); goto test_cleanup; }
+ res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &oval);
+ if(UNEX(res)) {
+ geterr("CONTENT_LENGTH_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_UPLOAD, &dval);
if(UNEX(res)) {
geterr("CONTENT_LENGTH_UPLOAD", res, __LINE__); goto test_cleanup; }
+ res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_UPLOAD_T, &oval);
+ if(UNEX(res)) {
+ geterr("CONTENT_LENGTH_UPLOAD_T", res, __LINE__); goto test_cleanup; }
res = curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME, &dval);
if(UNEX(res)) {
geterr("STARTTRANSFER_TIME", res, __LINE__); goto test_cleanup; }
diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl
index 87b2f3092..95c7135db 100644
--- a/tests/libtest/mk-lib1521.pl
+++ b/tests/libtest/mk-lib1521.pl
@@ -149,6 +149,7 @@ int test(char *URL)
struct data object;
char *charp;
long val;
+ curl_off_t oval;
double dval;
curl_socket_t sockfd;
struct curl_certinfo *certinfo;
@@ -255,6 +256,9 @@ while(<STDIN>) {
elsif($type eq "LONG") {
print "$c &val);\n$check";
}
+ elsif($type eq "OFF_T") {
+ print "$c &oval);\n$check";
+ }
elsif($type eq "DOUBLE") {
print "$c &dval);\n$check";
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 33/208: curl-compilers.m4: enable comma clang warning, (continued)
- [GNUnet-SVN] [gnurl] 33/208: curl-compilers.m4: enable comma clang warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 34/208: Makefile.m32: enable -W for MinGW32 build, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 40/208: http_proxy: fix build with http and proxy, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 51/208: travis: do the distcheck test build out-of-tree as well, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 43/208: PIPELINING_SERVER_BL: cleanup the internal list use, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 37/208: TODO: implement support for CURLOPT_PREQUOTE with SFTP, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 73/208: socks: use proxy_user instead of proxy_name, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 70/208: test1537: fixed memory leak on OOM, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 22/208: url: refactor the check for Windows drive letter in path, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 54/208: ci: whitelist branches to avoid testing feature branches twice, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 49/208: test1521: test getinfo's OFF_T types too,
gnunet <=
- [GNUnet-SVN] [gnurl] 29/208: http-proxy: fix chunked-encoded CONNECT responses, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 74/208: socks: deduplicate the code for auth request, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 69/208: test1521: fix compiler warnings, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 44/208: getinfo: return sizes as curl_off_t, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 31/208: curl-compilers.m4: enable double-promotion warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 50/208: http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASH, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 35/208: curl: prevent binary output spewed to terminal, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 86/208: make: build the docs subdir only from within src, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 84/208: test1450: add simple testing for DICT, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 99/208: configure: try ldap/lber in reversed order first, gnunet, 2017/08/09