mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-16 08:04:30 +03:00
torture: Fixed torture on Windows.
This commit is contained in:
parent
fdd1cb18d0
commit
cbcd5668f5
@ -21,13 +21,15 @@
|
|||||||
* MA 02111-1307, USA.
|
* MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#ifndef _WIN32
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <sys/stat.h>
|
# include <sys/stat.h>
|
||||||
# include <dirent.h>
|
# include <dirent.h>
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#ifndef _WIN32
|
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -35,6 +37,7 @@
|
|||||||
|
|
||||||
static int verbosity = 0;
|
static int verbosity = 0;
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
static int _torture_auth_kbdint(ssh_session session,
|
static int _torture_auth_kbdint(ssh_session session,
|
||||||
const char *password) {
|
const char *password) {
|
||||||
const char *prompt;
|
const char *prompt;
|
||||||
@ -146,10 +149,6 @@ int torture_isdir(const char *path) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int torture_libssh_verbosity(void){
|
|
||||||
return verbosity;
|
|
||||||
}
|
|
||||||
|
|
||||||
ssh_session torture_ssh_session(const char *host,
|
ssh_session torture_ssh_session(const char *host,
|
||||||
const char *user,
|
const char *user,
|
||||||
const char *password) {
|
const char *password) {
|
||||||
@ -281,6 +280,11 @@ void torture_sftp_close(struct torture_sftp *t) {
|
|||||||
free(t->testdir);
|
free(t->testdir);
|
||||||
free(t);
|
free(t);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int torture_libssh_verbosity(void){
|
||||||
|
return verbosity;
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
struct argument_s arguments;
|
struct argument_s arguments;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user