summaryrefslogtreecommitdiff
path: root/auto_tests
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests')
-rw-r--r--auto_tests/dht_test.c6
-rw-r--r--auto_tests/tox_test.c3
-rw-r--r--auto_tests/toxav_many_test.c4
3 files changed, 8 insertions, 5 deletions
diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c
index dd68ffbe..08044637 100644
--- a/auto_tests/dht_test.c
+++ b/auto_tests/dht_test.c
@@ -334,14 +334,16 @@ static void test_addto_lists(IP ip)
334 * to replace the first ip by the second. */ 334 * to replace the first ip by the second. */
335 test_addto_lists_update(dht, dht->close_clientlist, LCLIENT_LIST, &ip_port); 335 test_addto_lists_update(dht, dht->close_clientlist, LCLIENT_LIST, &ip_port);
336 336
337 for (i = 0; i < dht->num_friends; ++i) 337 for (i = 0; i < dht->num_friends; ++i) {
338 test_addto_lists_update(dht, dht->friends_list[i].client_list, MAX_FRIEND_CLIENTS, &ip_port); 338 test_addto_lists_update(dht, dht->friends_list[i].client_list, MAX_FRIEND_CLIENTS, &ip_port);
339 }
339 340
340 // check "bad" entries 341 // check "bad" entries
341 test_addto_lists_bad(dht, dht->close_clientlist, LCLIENT_LIST, &ip_port); 342 test_addto_lists_bad(dht, dht->close_clientlist, LCLIENT_LIST, &ip_port);
342 343
343 for (i = 0; i < dht->num_friends; ++i) 344 for (i = 0; i < dht->num_friends; ++i) {
344 test_addto_lists_bad(dht, dht->friends_list[i].client_list, MAX_FRIEND_CLIENTS, &ip_port); 345 test_addto_lists_bad(dht, dht->friends_list[i].client_list, MAX_FRIEND_CLIENTS, &ip_port);
346 }
345 347
346 // check "possibly bad" entries 348 // check "possibly bad" entries
347 /* 349 /*
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c
index 9649138e..7edb0348 100644
--- a/auto_tests/tox_test.c
+++ b/auto_tests/tox_test.c
@@ -94,7 +94,8 @@ static void print_status_m_change(Tox *tox, uint32_t friend_number, const uint8_
94 return; 94 return;
95 } 95 }
96 96
97 if (length == sizeof("Installing Gentoo") && memcmp(message, "Installing Gentoo", sizeof("Installing Gentoo")) == 0) { 97 if (length == sizeof("Installing Gentoo") &&
98 memcmp(message, "Installing Gentoo", sizeof("Installing Gentoo")) == 0) {
98 ++status_m_changes; 99 ++status_m_changes;
99 } 100 }
100} 101}
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c
index e3dd5a42..bdb5445b 100644
--- a/auto_tests/toxav_many_test.c
+++ b/auto_tests/toxav_many_test.c
@@ -200,7 +200,7 @@ static void *call_thread(void *pd)
200 free(video_u); 200 free(video_u);
201 free(video_v); 201 free(video_v);
202 202
203 printf ("Closing thread\n"); 203 printf("Closing thread\n");
204 pthread_exit(NULL); 204 pthread_exit(NULL);
205} 205}
206 206
@@ -326,7 +326,7 @@ START_TEST(test_AV_three_calls)
326 (void) pthread_join(tids[1], NULL); 326 (void) pthread_join(tids[1], NULL);
327 (void) pthread_join(tids[2], NULL); 327 (void) pthread_join(tids[2], NULL);
328 328
329 printf ("Killing all instances\n"); 329 printf("Killing all instances\n");
330 toxav_kill(BobsAV[0]); 330 toxav_kill(BobsAV[0]);
331 toxav_kill(BobsAV[1]); 331 toxav_kill(BobsAV[1]);
332 toxav_kill(BobsAV[2]); 332 toxav_kill(BobsAV[2]);