diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-28 22:42:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-28 22:43:48 +0200 |
commit | 1ebfd81eae67d0630d2efdd4c5f202e36d434fa1 (patch) | |
tree | 562e12ea1a66a86b9eaf1e4817adddb67b54e6cc | |
parent | 3a2ca60d6a7540d631df90807275da0ff25eca04 (diff) | |
download | curl-bagder/test1521-blob.tar.gz |
mk-lib1521: generate code for testing BLOB options as wellbagder/test1521-blob
Follow-up to cac5374298b3
-rwxr-xr-x | tests/libtest/mk-lib1521.pl | 5 |
1 files changed, 5 insertions, 0 deletions
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(<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/) { |