]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1608: make it build and get skipped without shuffle DNS support
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 Aug 2023 12:42:51 +0000 (14:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Aug 2023 15:17:59 +0000 (17:17 +0200)
tests/data/test1608
tests/unit/unit1608.c

index fbc6238958c89bbdb5b3f0e39035f6cdb4b13d0e..d037508b8493f852c06e3a8573405dfb4fac4bf0 100644 (file)
@@ -14,6 +14,7 @@ none
 </server>
 <features>
 unittest
+shuffle-dns
 </features>
  <name>
 verify DNS shuffling
index 31c6912695aabe68c0f7fa5bd2d133f73a6e1d68..f734b77885c250005c188fd88322ac300c952dcc 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "hostip.h"
 
+#ifndef CURL_DISABLE_SHUFFLE_DNS
+
 CURLcode Curl_shuffle_addr(struct Curl_easy *data,
                            struct Curl_addrinfo **addr);
 
@@ -72,3 +74,16 @@ UNITTEST_START
   abort_unless(addrhead != addrs, "addresses are not being reordered");
 
 UNITTEST_STOP
+
+#else
+static CURLcode unit_setup(void)
+{
+  return CURLE_OK;
+}
+static void unit_stop(void)
+{
+}
+UNITTEST_START
+UNITTEST_STOP
+
+#endif