aboutsummaryrefslogtreecommitdiff
path: root/tests/client/torture_algorithms.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2011-01-03 08:46:14 +0100
committerAndreas Schneider <asn@cynapses.org>2011-01-03 08:46:14 +0100
commite12253168c04bfc603afe43670ad214040040b3d (patch)
tree307488cc7984f6d4747049385583950b5efe9dc7 /tests/client/torture_algorithms.c
parent1540dad17fb94a6a0cbcd2498bfdaf115ef97cb7 (diff)
downloadlibssh-e12253168c04bfc603afe43670ad214040040b3d.tar.gz
libssh-e12253168c04bfc603afe43670ad214040040b3d.tar.xz
libssh-e12253168c04bfc603afe43670ad214040040b3d.zip
tests: Call init and finalize in client torture tests.
Diffstat (limited to 'tests/client/torture_algorithms.c')
-rw-r--r--tests/client/torture_algorithms.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c
index fceec00..a32ea01 100644
--- a/tests/client/torture_algorithms.c
+++ b/tests/client/torture_algorithms.c
@@ -149,6 +149,10 @@ static void torture_algorithms_zlib_openssh(void **state) {
}
int torture_run_tests(void) {
+ int rc;
+
+ ssh_init();
+
const UnitTest tests[] = {
unit_test_setup_teardown(torture_algorithms_aes128_cbc, setup, teardown),
unit_test_setup_teardown(torture_algorithms_aes192_cbc, setup, teardown),
@@ -162,5 +166,8 @@ int torture_run_tests(void) {
unit_test_setup_teardown(torture_algorithms_zlib_openssh, setup, teardown),
};
- return run_tests(tests);
+ rc = run_tests(tests);
+ ssh_finalize();
+
+ return rc;
}