mirror of
https://github.com/curl/curl.git
synced 2026-05-20 15:06:21 +03:00
lib678: fix to not be perma-skipped
Prior to this patch the test was always skipped due to failing precheck
with `CURLE_BAD_FUNCTION_ARGUMENT`, because of the zero-length blob
passed to setopt. Fix by passing a non-zero long dummy blob as done in
`mk-lib1521.pl`.
Fixing:
```
test 0678 SKIPPED: CURLOPT_CAINFO_BLOB is not supported
```
Follow-up to 956e1ae84f #20705
Closes #21641
This commit is contained in:
parent
40c516f941
commit
535c575e31
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ static CURLcode test_lib678(const char *URL)
|
|||
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||
if(!strcmp("check", URL)) {
|
||||
CURLcode w = CURLE_OK;
|
||||
struct curl_blob blob = { 0 };
|
||||
struct curl_blob blob = { CURL_UNCONST("silly"), 5, 0 };
|
||||
CURL *curl = curl_easy_init();
|
||||
if(curl) {
|
||||
w = curl_easy_setopt(curl, CURLOPT_CAINFO_BLOB, &blob);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue