diff options
Diffstat (limited to 'auto_tests/tox_many_test.c')
-rw-r--r-- | auto_tests/tox_many_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/auto_tests/tox_many_test.c b/auto_tests/tox_many_test.c index fa657580..0c4c8c7d 100644 --- a/auto_tests/tox_many_test.c +++ b/auto_tests/tox_many_test.c | |||
@@ -42,11 +42,13 @@ START_TEST(test_many_clients) | |||
42 | { | 42 | { |
43 | long long unsigned int cur_time = time(NULL); | 43 | long long unsigned int cur_time = time(NULL); |
44 | Tox *toxes[NUM_TOXES]; | 44 | Tox *toxes[NUM_TOXES]; |
45 | uint32_t index[NUM_TOXES]; | ||
45 | uint32_t i, j; | 46 | uint32_t i, j; |
46 | uint32_t to_comp = 974536; | 47 | uint32_t to_comp = 974536; |
47 | 48 | ||
48 | for (i = 0; i < NUM_TOXES; ++i) { | 49 | for (i = 0; i < NUM_TOXES; ++i) { |
49 | toxes[i] = tox_new(0, 0); | 50 | index[i] = i + 1; |
51 | toxes[i] = tox_new_log(0, 0, &index[i]); | ||
50 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); | 52 | ck_assert_msg(toxes[i] != 0, "Failed to create tox instances %u", i); |
51 | tox_callback_friend_request(toxes[i], accept_friend_request); | 53 | tox_callback_friend_request(toxes[i], accept_friend_request); |
52 | } | 54 | } |