From: Dan Fandrich Date: Tue, 5 May 2026 03:56:51 +0000 (-0700) Subject: tests: fix unit1636 with --disable-progress-meter X-Git-Tag: rc-8_21_0-1~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=478e280278dea959bf727fdacd5d33acf0d85d2e;p=thirdparty%2Fcurl.git tests: fix unit1636 with --disable-progress-meter Closes #21500 --- diff --git a/tests/unit/unit1636.c b/tests/unit/unit1636.c index cb50879efe..adb048a872 100644 --- a/tests/unit/unit1636.c +++ b/tests/unit/unit1636.c @@ -23,6 +23,7 @@ ***************************************************************************/ #include "unitcheck.h" +#ifndef CURL_DISABLE_PROGRESS_METER static CURLcode test_unit1636(const char *arg) { UNITTEST_BEGIN_SIMPLE @@ -71,3 +72,11 @@ static CURLcode test_unit1636(const char *arg) } UNITTEST_END(curl_global_cleanup()) } + +#else /* CURL_DISABLE_PROGRESS_METER */ +static CURLcode test_unit1636(const char *arg) +{ + (void)arg; + return CURLE_OK; +} +#endif