tests: make the unit test result type CURLcode

Before this patch, the result code was a mixture of `int` and
`CURLcode`.

Also adjust casts and fix a couple of minor issues found along the way.

Cherry-picked from #13489
Closes #13600
This commit is contained in:
Viktor Szakats 2024-05-11 21:36:05 +02:00
parent dad03dc593
commit 25cbc2f79a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
221 changed files with 619 additions and 616 deletions

View file

@ -41,7 +41,7 @@ unit_stop(void)
#if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_HSTS)
UNITTEST_START
{
return 0; /* nothing to do when HTTP or HSTS are disabled */
return CURLE_OK; /* nothing to do when HTTP or HSTS are disabled */
}
UNITTEST_STOP
#else