]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
mk-lib1521: generate code for testing BLOB options as well
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 May 2020 20:42:49 +0000 (22:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 May 2020 07:22:50 +0000 (09:22 +0200)
Follow-up to cac5374298b3

Closes #5478

tests/libtest/mk-lib1521.pl

index e4ac6a1c5aa215cc91ad8ef38af0c5a1ff61331b..f4ef19fe74ba4869ebabb5862d0bb6121bb734f6 100755 (executable)
@@ -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(<STDIN>) {
             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/) {