From f812ace256694e7215f71586214fe3802f5f4923 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 7 Feb 2011 13:33:28 +0100 Subject: tests: Some fixes for sftp_dir. --- tests/client/torture_sftp_dir.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/client') 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); -- cgit v1.2.3