aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-03 12:24:53 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-03 12:29:32 +0200
commit94ce1ea45119770817676c25e15fe58a503a4db2 (patch)
tree45650f5b78eaf259f59810840c23e05dc30b16d3
parentf3697a0d5cf98d5c6fb372aba35bfc895dfdd832 (diff)
downloadlibssh-94ce1ea45119770817676c25e15fe58a503a4db2.tar.gz
libssh-94ce1ea45119770817676c25e15fe58a503a4db2.tar.xz
libssh-94ce1ea45119770817676c25e15fe58a503a4db2.zip
tests: Fixed the misc torture test.
-rw-r--r--tests/unittests/torture_misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c
index e9161073..be21de97 100644
--- a/tests/unittests/torture_misc.c
+++ b/tests/unittests/torture_misc.c
@@ -107,9 +107,9 @@ START_TEST (torture_path_expand_escape)
const char *s = "%d/%h/by/%r";
char *e;
- ssh_options_set(session, SSH_OPTIONS_SSH_DIR, "guru");
- ssh_options_set(session, SSH_OPTIONS_HOST, "meditation");
- ssh_options_set(session, SSH_OPTIONS_USER, "root");
+ session->sshdir = strdup("guru");
+ session->host = strdup("meditation");
+ session->username = strdup("root");
e = ssh_path_expand_escape(session, s);
ck_assert_str_eq(e, "guru/meditation/by/root");
@@ -121,7 +121,7 @@ START_TEST (torture_path_expand_known_hosts)
{
char *tmp;
- ssh_options_set(session, SSH_OPTIONS_SSH_DIR, "/home/guru/.ssh");
+ session->sshdir = strdup("/home/guru/.ssh");
tmp = ssh_path_expand_escape(session, "%d/known_hosts");
ck_assert_str_eq(tmp, "/home/guru/.ssh/known_hosts");