diff options
Diffstat (limited to 'auto_tests/tox_many_tcp_test.c')
-rw-r--r-- | auto_tests/tox_many_tcp_test.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/auto_tests/tox_many_tcp_test.c b/auto_tests/tox_many_tcp_test.c index 59d69c49..f802bf57 100644 --- a/auto_tests/tox_many_tcp_test.c +++ b/auto_tests/tox_many_tcp_test.c | |||
@@ -50,6 +50,7 @@ START_TEST(test_many_clients_tcp) | |||
50 | { | 50 | { |
51 | long long unsigned int cur_time = time(NULL); | 51 | long long unsigned int cur_time = time(NULL); |
52 | Tox *toxes[NUM_TOXES_TCP]; | 52 | Tox *toxes[NUM_TOXES_TCP]; |
53 | uint32_t index[NUM_TOXES_TCP]; | ||
53 | uint32_t i, j; | 54 | uint32_t i, j; |
54 | uint32_t to_comp = 974536; | 55 | uint32_t to_comp = 974536; |
55 | 56 | ||
@@ -63,7 +64,8 @@ START_TEST(test_many_clients_tcp) | |||
63 | opts.udp_enabled = 0; | 64 | opts.udp_enabled = 0; |
64 | } | 65 | } |
65 | 66 | ||
66 | toxes[i] = tox_new(&opts, 0); | 67 | index[i] = i + 1; |
68 | toxes[i] = tox_new_log(&opts, 0, &index[i]); | ||
67 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); | 69 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); |
68 | tox_callback_friend_request(toxes[i], accept_friend_request); | 70 | tox_callback_friend_request(toxes[i], accept_friend_request); |
69 | uint8_t dpk[TOX_PUBLIC_KEY_SIZE]; | 71 | uint8_t dpk[TOX_PUBLIC_KEY_SIZE]; |
@@ -149,6 +151,7 @@ START_TEST(test_many_clients_tcp_b) | |||
149 | { | 151 | { |
150 | long long unsigned int cur_time = time(NULL); | 152 | long long unsigned int cur_time = time(NULL); |
151 | Tox *toxes[NUM_TOXES_TCP]; | 153 | Tox *toxes[NUM_TOXES_TCP]; |
154 | uint32_t index[NUM_TOXES_TCP]; | ||
152 | uint32_t i, j; | 155 | uint32_t i, j; |
153 | uint32_t to_comp = 974536; | 156 | uint32_t to_comp = 974536; |
154 | 157 | ||
@@ -162,7 +165,8 @@ START_TEST(test_many_clients_tcp_b) | |||
162 | opts.udp_enabled = 0; | 165 | opts.udp_enabled = 0; |
163 | } | 166 | } |
164 | 167 | ||
165 | toxes[i] = tox_new(&opts, 0); | 168 | index[i] = i + 1; |
169 | toxes[i] = tox_new_log(&opts, 0, &index[i]); | ||
166 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); | 170 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); |
167 | tox_callback_friend_request(toxes[i], accept_friend_request); | 171 | tox_callback_friend_request(toxes[i], accept_friend_request); |
168 | uint8_t dpk[TOX_PUBLIC_KEY_SIZE]; | 172 | uint8_t dpk[TOX_PUBLIC_KEY_SIZE]; |