From 478e280278dea959bf727fdacd5d33acf0d85d2e Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 4 May 2026 20:56:51 -0700 Subject: [PATCH] tests: fix unit1636 with --disable-progress-meter Closes #21500 --- tests/unit/unit1636.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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