From ac5e44debbbc2cb475da04562b5cd1d64e87d255 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 6 Jun 2014 09:50:19 -0400 Subject: [PATCH] Kill toxes when finished in tox_test to test tox_kill. --- auto_tests/tox_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c index c7d2f5f90..11de22131 100644 --- a/auto_tests/tox_test.c +++ b/auto_tests/tox_test.c @@ -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