1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

Call ssh_init()/ssh_finalize bf/af each testcase

This commit is contained in:
Aris Adamantiadis
2011-01-02 17:25:51 +01:00
parent 2faaefade9
commit 3f538b3ddd
6 changed files with 31 additions and 6 deletions

View File

@ -85,11 +85,15 @@ static void torture_buffer_prepend(void **state) {
}
int torture_run_tests(void) {
int rc;
const UnitTest tests[] = {
unit_test_setup_teardown(torture_growing_buffer, setup, teardown),
unit_test_setup_teardown(torture_growing_buffer_shifting, setup, teardown),
unit_test_setup_teardown(torture_buffer_prepend, setup, teardown),
};
return run_tests(tests);
ssh_init();
rc=run_tests(tests);
ssh_finalize();
return rc;
}