test1608: make it build and get skipped without shuffle DNS support

This commit is contained in:
Daniel Stenberg 2023-08-17 14:42:51 +02:00
parent e67718eef7
commit 7c4cb065b7
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@ none
</server> </server>
<features> <features>
unittest unittest
shuffle-dns
</features> </features>
<name> <name>
verify DNS shuffling verify DNS shuffling

View File

@ -25,6 +25,8 @@
#include "hostip.h" #include "hostip.h"
#ifndef CURL_DISABLE_SHUFFLE_DNS
CURLcode Curl_shuffle_addr(struct Curl_easy *data, CURLcode Curl_shuffle_addr(struct Curl_easy *data,
struct Curl_addrinfo **addr); struct Curl_addrinfo **addr);
@ -72,3 +74,16 @@ UNITTEST_START
abort_unless(addrhead != addrs, "addresses are not being reordered"); abort_unless(addrhead != addrs, "addresses are not being reordered");
UNITTEST_STOP UNITTEST_STOP
#else
static CURLcode unit_setup(void)
{
return CURLE_OK;
}
static void unit_stop(void)
{
}
UNITTEST_START
UNITTEST_STOP
#endif