diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-04-05 15:12:55 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-04-05 15:14:12 +0200 |
commit | 8761a40fd95a8016f6c1d83516b86a1110ae118b (patch) | |
tree | 67f53c47f4d46bc178b23a4ca37519a37e336773 /tests/libtest | |
parent | 65154588f6784c3f20cb552a3926f26aead33e8c (diff) |
test1541: ignore the curl_off_t variable type name comparison
... the sizes and the formatting strings are what's really important and
avoids problems with int64_t vs "long long".
Bug: https://curl.haxx.se/mail/lib-2017-04/0019.html
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib1541.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libtest/lib1541.c b/tests/libtest/lib1541.c index ef993dd66..695d35842 100644 --- a/tests/libtest/lib1541.c +++ b/tests/libtest/lib1541.c @@ -47,7 +47,9 @@ int test(char *URL) socket_h = "Yes"; #endif snprintf(detect, sizeof(detect), +#ifdef CHECK_CURL_OFF_T "CURL_TYPEOF_CURL_OFF_T: %s\n" +#endif "CURL_FORMAT_CURL_OFF_T: %s\n" "CURL_FORMAT_CURL_OFF_TU: %s\n" "CURL_SUFFIX_CURL_OFF_T: %s\n" @@ -58,7 +60,9 @@ int test(char *URL) "CURL_PULL_SYS_TYPES_H: %s\n" "CURL_PULL_SYS_SOCKET_H: %s\n" +#ifdef CHECK_CURL_OFF_T , STRING(CURL_TYPEOF_CURL_OFF_T) +#endif , CURL_FORMAT_CURL_OFF_T , CURL_FORMAT_CURL_OFF_TU , STRING(CURL_SUFFIX_CURL_OFF_T) @@ -76,7 +80,9 @@ int test(char *URL) ssocket_h = "Yes"; #endif snprintf(syst, sizeof(syst), +#ifdef CHECK_CURL_OFF_T "CURL_TYPEOF_CURL_OFF_T: %s\n" +#endif "CURL_FORMAT_CURL_OFF_T: %s\n" "CURL_FORMAT_CURL_OFF_TU: %s\n" "CURL_SUFFIX_CURL_OFF_T: %s\n" @@ -87,7 +93,9 @@ int test(char *URL) "CURL_PULL_SYS_TYPES_H: %s\n" "CURL_PULL_SYS_SOCKET_H: %s\n" +#ifdef CHECK_CURL_OFF_T , STRING(CURLSYS_TYPEOF_CURL_OFF_T) +#endif , CURLSYS_FORMAT_CURL_OFF_T , CURLSYS_FORMAT_CURL_OFF_TU , STRING(CURLSYS_SUFFIX_CURL_OFF_T) |