mirror of
https://github.com/curl/curl.git
synced 2025-09-14 16:12:43 +03:00
test1608: make it build and get skipped without shuffle DNS support
This commit is contained in:
parent
e67718eef7
commit
7c4cb065b7
|
@ -14,6 +14,7 @@ none
|
|||
</server>
|
||||
<features>
|
||||
unittest
|
||||
shuffle-dns
|
||||
</features>
|
||||
<name>
|
||||
verify DNS shuffling
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user