aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-07 13:33:28 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-07 13:33:28 +0100
commitf812ace256694e7215f71586214fe3802f5f4923 (patch)
tree6bba6848f49b5b76e575a98605293cbf2d88154a /tests/client
parent057704c097b69c982fc342fdb5b3566198cf3372 (diff)
downloadlibssh-f812ace256694e7215f71586214fe3802f5f4923.tar.gz
libssh-f812ace256694e7215f71586214fe3802f5f4923.tar.xz
libssh-f812ace256694e7215f71586214fe3802f5f4923.zip
tests: Some fixes for sftp_dir.
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/torture_sftp_dir.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/client/torture_sftp_dir.c b/tests/client/torture_sftp_dir.c
index 68e5984..ba671e4 100644
--- a/tests/client/torture_sftp_dir.c
+++ b/tests/client/torture_sftp_dir.c
@@ -6,19 +6,20 @@
static void setup(void **state) {
ssh_session session;
struct torture_sftp *t;
- char *host;
- char *user;
- char *password;
+ const char *host;
+ const char *user;
+ const char *password;
host = getenv("TORTURE_HOST");
if (host == NULL) {
- host = (char *) "localhost";
+ host = "localhost";
}
user = getenv("TORTURE_USER");
password = getenv("TORTURE_PASSWORD");
session = torture_ssh_session(host, user, password);
+ assert_false(session == NULL);
t = torture_sftp_session(session);
assert_false(t == NULL);