mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Kill toxes when finished in tox_test to test tox_kill.
This commit is contained in:
parent
2cbfbef6e5
commit
ac5e44debb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user