aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/torture_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/torture_misc.c')
-rw-r--r--tests/unittests/torture_misc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c
index e7562334..9df70bbc 100644
--- a/tests/unittests/torture_misc.c
+++ b/tests/unittests/torture_misc.c
@@ -157,6 +157,7 @@ static void torture_path_expand_known_hosts(void **state) {
}
int torture_run_tests(void) {
+ int rc;
const UnitTest tests[] = {
unit_test(torture_get_user_home_dir),
unit_test(torture_basename),
@@ -171,5 +172,8 @@ int torture_run_tests(void) {
unit_test_setup_teardown(torture_path_expand_known_hosts, setup, teardown),
};
- return run_tests(tests);
+ ssh_init();
+ rc=run_tests(tests);
+ ssh_finalize();
+ return rc;
}