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

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