diff options
author | nikita <nikita@NetBSD.org> | 2021-01-13 00:53:52 +0100 |
---|---|---|
committer | nikita <nikita@NetBSD.org> | 2021-01-13 00:53:52 +0100 |
commit | 5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb (patch) | |
tree | d69e840805484efba1885154b855bf93409248cb /tests/libtest/mk-lib1521.pl | |
parent | 7bd28f37397837d72302550e43d95060413e9eb8 (diff) | |
parent | e052859759b34d0e05ce0f17244873e5cd7b457b (diff) | |
download | gnurl-5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb.tar.gz gnurl-5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb.tar.bz2 gnurl-5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb.zip |
Merge tag 'curl-7_74_0'
7.74.0
Diffstat (limited to 'tests/libtest/mk-lib1521.pl')
-rwxr-xr-x | tests/libtest/mk-lib1521.pl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl index 14b222098..ba60862cd 100755 --- a/tests/libtest/mk-lib1521.pl +++ b/tests/libtest/mk-lib1521.pl @@ -10,7 +10,7 @@ # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms -# are also available at https://curl.haxx.se/docs/copyright.html. +# are also available at https://curl.se/docs/copyright.html. # # You may opt to use, copy, modify, merge, publish, distribute and/or sell # copies of the Software, and permit persons to whom the Software is @@ -42,7 +42,7 @@ print <<HEADER * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms - * are also available at https://curl.haxx.se/docs/copyright.html. + * are also available at https://curl.se/docs/copyright.html. * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is @@ -133,6 +133,8 @@ static curl_chunk_end_callback chunk_end_cb; static curl_fnmatch_callback fnmatch_cb; static curl_closesocket_callback closesocketcb; static curl_xferinfo_callback xferinfocb; +static curl_hstsread_callback hstsreadcb; +static curl_hstswrite_callback hstswritecb; static curl_resolver_start_callback resolver_start_cb; int test(char *URL) @@ -184,13 +186,15 @@ while(<STDIN>) { print "${pref} \"string\");\n$check"; print "${pref} NULL);\n$check"; } - elsif($type eq "CURLOPTTYPE_LONG") { + elsif(($type eq "CURLOPTTYPE_LONG") || + ($type eq "CURLOPTTYPE_VALUES")) { print "${pref} 0L);\n$check"; print "${pref} 22L);\n$check"; print "${pref} LO);\n$check"; print "${pref} HI);\n$check"; } - elsif($type eq "CURLOPTTYPE_OBJECTPOINT") { + elsif(($type eq "CURLOPTTYPE_OBJECTPOINT") || + ($type eq "CURLOPTTYPE_CBPOINT")) { if($name =~ /DEPENDS/) { print "${pref} dep);\n$check"; } @@ -244,8 +248,8 @@ while(<STDIN>) { print "${pref} &blob);\n$check"; } else { - print STDERR "\n---- $type\n"; - exit; # exit to make this noticed! + print STDERR "\nUnknown type: $type\n"; + exit 22; # exit to make this noticed! } } elsif($_ =~ /^ CURLINFO_NONE/) { @@ -295,7 +299,7 @@ while(<STDIN>) { print <<FOOTER - curl_easy_setopt(curl, 1, 0); + curl_easy_setopt(curl, (CURLoption)1, 0); res = CURLE_OK; test_cleanup: curl_easy_cleanup(curl); |