From ef1866db76ed10d64bf8cf97111554b2b2eb1278 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 2 Jan 2011 09:19:53 +0100 Subject: tests: Call ssh_init() and ssh_finalize() before we run the tests. --- tests/torture.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/torture.c b/tests/torture.c index 1bd7b159..d593a07a 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -1,6 +1,7 @@ -#include "torture.h" - #include +#include + +#include "torture.h" static int verbosity = 0; @@ -9,8 +10,16 @@ int torture_libssh_verbosity(void){ } int main(int argc, char **argv) { + int rc; + (void) argc; (void) argv; - return torture_run_tests(); + ssh_init(); + + rc = torture_run_tests(); + + ssh_finalize(); + + return rc; } -- cgit v1.2.3