mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Call ssh_init()/ssh_finalize bf/af each testcase
This commit is contained in:
@@ -119,6 +119,7 @@ static void torture_options_set_identity(void **state) {
|
||||
}
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
const UnitTest tests[] = {
|
||||
unit_test_setup_teardown(torture_options_set_host, setup, teardown),
|
||||
unit_test_setup_teardown(torture_options_set_port, setup, teardown),
|
||||
@@ -127,5 +128,8 @@ int torture_run_tests(void) {
|
||||
unit_test_setup_teardown(torture_options_set_identity, setup, teardown),
|
||||
};
|
||||
|
||||
return run_tests(tests);
|
||||
ssh_init();
|
||||
rc=run_tests(tests);
|
||||
ssh_finalize();
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user