mirror of
https://github.com/curl/curl.git
synced 2025-09-15 00:22:42 +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>
|
</server>
|
||||||
<features>
|
<features>
|
||||||
unittest
|
unittest
|
||||||
|
shuffle-dns
|
||||||
</features>
|
</features>
|
||||||
<name>
|
<name>
|
||||||
verify DNS shuffling
|
verify DNS shuffling
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user