]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib678: fix to not be perma-skipped
authorViktor Szakats <commit@vsz.me>
Sat, 16 May 2026 01:56:33 +0000 (03:56 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 16 May 2026 09:55:59 +0000 (11:55 +0200)
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 956e1ae84f2fec9f027b4ce80999744326b30992 #20705

Closes #21641

tests/libtest/lib678.c

index 73aa4ee7e972371439cb4369544184c2945cccc9..7486505f76848f022d5adc5848c2aabc28242cc8 100644 (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);