aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-01-02 17:15:03 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-01-02 17:15:03 +0100
commit2faaefade94d1ded2d246a90081aca781d6ff56e (patch)
treed8eb1cd3f2139d063276b3b71ca1da8c52cb97fa /tests/torture.c
parentef1866db76ed10d64bf8cf97111554b2b2eb1278 (diff)
downloadlibssh-2faaefade94d1ded2d246a90081aca781d6ff56e.tar.gz
libssh-2faaefade94d1ded2d246a90081aca781d6ff56e.tar.xz
libssh-2faaefade94d1ded2d246a90081aca781d6ff56e.zip
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.
Diffstat (limited to 'tests/torture.c')
-rw-r--r--tests/torture.c15
1 files 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 <stdio.h>
-#include <libssh/libssh.h>
-
#include "torture.h"
+#include <stdio.h>
+
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();
}