]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: fix unit1636 with --disable-progress-meter
authorDan Fandrich <dan@coneharvesters.com>
Tue, 5 May 2026 03:56:51 +0000 (20:56 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 7 May 2026 04:46:40 +0000 (21:46 -0700)
Closes #21500

tests/unit/unit1636.c

index cb50879efe60ee895a73d2ad3ba1f231f70e3836..adb048a8729707e14dc5fe98299d745a829208e1 100644 (file)
@@ -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