diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-06-03 12:24:53 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-06-03 12:29:32 +0200 |
commit | 94ce1ea45119770817676c25e15fe58a503a4db2 (patch) | |
tree | 45650f5b78eaf259f59810840c23e05dc30b16d3 /tests/unittests | |
parent | f3697a0d5cf98d5c6fb372aba35bfc895dfdd832 (diff) | |
download | libssh-94ce1ea45119770817676c25e15fe58a503a4db2.tar.gz libssh-94ce1ea45119770817676c25e15fe58a503a4db2.tar.xz libssh-94ce1ea45119770817676c25e15fe58a503a4db2.zip |
tests: Fixed the misc torture test.
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/torture_misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c index e916107..be21de9 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"); |