From 32d4d6b969bfc8bf8f3b85a60c999d15469ff55b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 28 May 2020 22:42:49 +0200 Subject: [PATCH] mk-lib1521: generate code for testing BLOB options as well Follow-up to cac5374298b3 Closes #5478 --- tests/libtest/mk-lib1521.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl index e4ac6a1c5..f4ef19fe7 100755 --- a/tests/libtest/mk-lib1521.pl +++ b/tests/libtest/mk-lib1521.pl @@ -158,6 +158,7 @@ int test(char *URL) curl_socket_t sockfd; struct curl_certinfo *certinfo; struct curl_tlssessioninfo *tlssession; + struct curl_blob blob = { (void *)"silly", 5, 0}; CURLcode res = CURLE_OK; (void)URL; /* not used */ global_init(CURL_GLOBAL_ALL); @@ -239,8 +240,12 @@ while() { print "${pref} OFF_HI);\n$check"; print "${pref} OFF_LO);\n$check"; } + elsif($type eq "CURLOPTTYPE_BLOB") { + print "${pref} &blob);\n$check"; + } else { print STDERR "\n---- $type\n"; + exit; # exit to make this noticed! } } elsif($_ =~ /^ CURLINFO_NONE/) {