summaryrefslogtreecommitdiff
path: root/auto_tests/dht_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-12-19 15:27:46 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-12-22 10:26:59 +0000
commit2328cb74abccd563f0cd8d14d30e5314822d321e (patch)
treeb61581536d448a8846dc333b44c9b56e24605a1f /auto_tests/dht_test.c
parentce29c8e7ec91d95167b2dea3aee9fd1ae1aac254 (diff)
Improve documentation of crypto_core.
Diffstat (limited to 'auto_tests/dht_test.c')
-rw-r--r--auto_tests/dht_test.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c
index 7734e64a..9cec1643 100644
--- a/auto_tests/dht_test.c
+++ b/auto_tests/dht_test.c
@@ -2,13 +2,13 @@
2#include "config.h" 2#include "config.h"
3#endif 3#endif
4 4
5#include <sys/param.h> 5#include "helpers.h"
6#include <time.h>
7 6
8#include "../toxcore/DHT.c" 7#include "../toxcore/DHT.c"
9#include "../toxcore/tox.h" 8#include "../toxcore/tox.h"
10 9
11#include "helpers.h" 10#include <sys/param.h>
11#include <time.h>
12 12
13 13
14// These tests currently fail. 14// These tests currently fail.
@@ -299,6 +299,10 @@ static void test_addto_lists_good(DHT *dht,
299 ck_assert_msg(client_in_list(list, length, public_key) == -1, "Good client id is in the list"); 299 ck_assert_msg(client_in_list(list, length, public_key) == -1, "Good client id is in the list");
300} 300}
301 301
302#ifndef MAX
303#define MAX(a, b) ((a) > (b) ? (a) : (b))
304#endif
305
302static void test_addto_lists(IP ip) 306static void test_addto_lists(IP ip)
303{ 307{
304 Networking_Core *net = new_networking(NULL, ip, TOX_PORT_DEFAULT); 308 Networking_Core *net = new_networking(NULL, ip, TOX_PORT_DEFAULT);