From cbcd5668f55dffa29b461cfee5b876d585bdbe04 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 13 Feb 2011 11:54:56 +0100 Subject: [PATCH] torture: Fixed torture on Windows. --- tests/torture.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/torture.c b/tests/torture.c index e24ef442..1d45e421 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -21,13 +21,15 @@ * MA 02111-1307, USA. */ -#include -#include -#include -#include +#include "config.h" + #include #include #ifndef _WIN32 +# include +# include +# include +# include # include #endif @@ -35,6 +37,7 @@ static int verbosity = 0; +#ifndef _WIN32 static int _torture_auth_kbdint(ssh_session session, const char *password) { const char *prompt; @@ -146,10 +149,6 @@ int torture_isdir(const char *path) { return 0; } -int torture_libssh_verbosity(void){ - return verbosity; -} - ssh_session torture_ssh_session(const char *host, const char *user, const char *password) { @@ -281,6 +280,11 @@ void torture_sftp_close(struct torture_sftp *t) { free(t->testdir); free(t); } +#endif + +int torture_libssh_verbosity(void){ + return verbosity; +} int main(int argc, char **argv) { struct argument_s arguments;