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:
Viktor Szakats 2026-05-16 03:56:33 +02:00
parent 40c516f941
commit 535c575e31
No known key found for this signature in database

View file

@ -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);