From: Daniel Stenberg Date: Thu, 17 Aug 2023 12:43:37 +0000 (+0200) Subject: unit3200: skip testing if function is not present X-Git-Tag: curl-8_3_0~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e90d3565704944d60f4ffc2ae733fe93ff85df33;p=thirdparty%2Fcurl.git unit3200: skip testing if function is not present Fake a successful run since we have no easy mechanism to skip this test for this advanced condition. --- diff --git a/tests/unit/unit3200.c b/tests/unit/unit3200.c index 2d684cf82d..eff5667720 100644 --- a/tests/unit/unit3200.c +++ b/tests/unit/unit3200.c @@ -24,6 +24,9 @@ #include "curlcheck.h" #include "curl_get_line.h" +#if !defined(CURL_DISABLE_COOKIES) || !defined(CURL_DISABLE_ALTSVC) || \ + !defined(CURL_DISABLE_HSTS) || !defined(CURL_DISABLE_NETRC) + /* The test XML does not supply a way to write files without newlines * so we write our own */ @@ -157,3 +160,16 @@ UNITTEST_START fprintf(stderr, "OK\n"); } UNITTEST_STOP + +#else +static CURLcode unit_setup(void) +{ + return CURLE_OK; +} +static void unit_stop(void) +{ +} +UNITTEST_START +UNITTEST_STOP + +#endif