From 2faaefade94d1ded2d246a90081aca781d6ff56e Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 2 Jan 2011 17:15:03 +0100 Subject: [PATCH] Revert "tests: Call ssh_init() and ssh_finalize() before we run the tests." Reason: breaks test_rand, because threading has to be initialized before ssh_init() This reverts commit ef1866db76ed10d64bf8cf97111554b2b2eb1278. --- tests/torture.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/torture.c b/tests/torture.c index d593a07a..1bd7b159 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -1,8 +1,7 @@ -#include -#include - #include "torture.h" +#include + static int verbosity = 0; int torture_libssh_verbosity(void){ @@ -10,16 +9,8 @@ int torture_libssh_verbosity(void){ } int main(int argc, char **argv) { - int rc; - (void) argc; (void) argv; - ssh_init(); - - rc = torture_run_tests(); - - ssh_finalize(); - - return rc; + return torture_run_tests(); }