mirror of
https://github.com/TokTok/c-toxcore
synced 2026-04-27 10:45:42 +00:00
Kill toxes when finished in tox_test to test tox_kill.
This commit is contained in:
@@ -279,6 +279,10 @@ START_TEST(test_few_clients)
|
||||
printf("100MB file sent in %llu seconds\n", time(NULL) - f_time);
|
||||
|
||||
printf("test_few_clients succeeded, took %llu seconds\n", time(NULL) - cur_time);
|
||||
|
||||
tox_kill(tox1);
|
||||
tox_kill(tox2);
|
||||
tox_kill(tox3);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
@@ -346,6 +350,10 @@ loop_top:
|
||||
}
|
||||
|
||||
printf("test_many_clients succeeded, took %llu seconds\n", time(NULL) - cur_time);
|
||||
|
||||
for (i = 0; i < NUM_TOXES; ++i) {
|
||||
tox_kill(toxes[i]);
|
||||
}
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
||||
Reference in New Issue
Block a user