aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/torture_keyfiles.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-01-02 17:25:51 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-01-02 17:25:51 +0100
commit3f538b3ddd237c04ccdf774b6274bdbbdee0e6e7 (patch)
treea9790d83a6ce2cd36dec09b221048c78395e9334 /tests/unittests/torture_keyfiles.c
parent2faaefade94d1ded2d246a90081aca781d6ff56e (diff)
downloadlibssh-3f538b3ddd237c04ccdf774b6274bdbbdee0e6e7.tar.gz
libssh-3f538b3ddd237c04ccdf774b6274bdbbdee0e6e7.tar.xz
libssh-3f538b3ddd237c04ccdf774b6274bdbbdee0e6e7.zip
Call ssh_init()/ssh_finalize bf/af each testcase
Diffstat (limited to 'tests/unittests/torture_keyfiles.c')
-rw-r--r--tests/unittests/torture_keyfiles.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unittests/torture_keyfiles.c b/tests/unittests/torture_keyfiles.c
index 47eb7b42..6e801c35 100644
--- a/tests/unittests/torture_keyfiles.c
+++ b/tests/unittests/torture_keyfiles.c
@@ -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;
}