mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
Call ssh_init()/ssh_finalize bf/af each testcase
This commit is contained in:
@@ -232,6 +232,7 @@ static void torture_privatekey_from_file_passphrase(void **state) {
|
||||
}
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
const UnitTest tests[] = {
|
||||
unit_test_setup_teardown(torture_pubkey_from_file,
|
||||
setup_rsa_key,
|
||||
@@ -245,5 +246,9 @@ int torture_run_tests(void) {
|
||||
setup_both_keys_passphrase, teardown),
|
||||
};
|
||||
|
||||
return run_tests(tests);
|
||||
|
||||
ssh_init();
|
||||
rc=run_tests(tests);
|
||||
ssh_finalize();
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user