Kill toxes when finished in tox_test to test tox_kill.

This commit is contained in:
irungentoo 2014-06-06 09:50:19 -04:00
parent 2cbfbef6e5
commit ac5e44debb
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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