Added test.

This commit is contained in:
irungentoo 2015-06-05 22:11:19 -04:00
parent 5196aa82ca
commit bf90c63c27
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -795,6 +795,14 @@ START_TEST(test_many_clients)
uint8_t address[TOX_ADDRESS_SIZE];
unsigned int num_f = 0;
for (i = 0; i < NUM_TOXES; ++i) {
num_f += tox_self_get_friend_list_size();
}
ck_assert_msg(num_f == NUM_FRIENDS * 2, "bad num friends");
for (i = 0; i < NUM_FRIENDS; ++i) {
loop_top:
pairs[i].tox1 = rand() % NUM_TOXES;