From fcdd839e87f14386818c9b63f223ace0432523c4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 1 Sep 2013 00:11:59 +0000 Subject: [PATCH] fix test_privacy when DHT is disabled --- test/test_privacy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_privacy.cpp b/test/test_privacy.cpp index 2cd21fb7a..6c0329384 100644 --- a/test/test_privacy.cpp +++ b/test/test_privacy.cpp @@ -77,6 +77,10 @@ enum flags_t void test_proxy(proxy_settings::proxy_type proxy_type, int flags) { +#ifdef TORRENT_DISABLE_DHT + // if DHT is disabled, we won't get any requests to it + flags &= ~expect_dht_msg; +#endif fprintf(stderr, "\n=== TEST == proxy: %s anonymous-mode: %s\n\n", proxy_name[proxy_type], (flags & anonymous_mode) ? "yes" : "no"); int http_port = start_web_server(); int udp_port = start_tracker();