aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-01-08 11:41:10 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-22 13:12:25 +0100
commit2113dc9d23a7069986a2282bfe5086138172739a (patch)
treeee0d13366ccc9b02e38dbf87658c21c99eb872bc /tests/server
parent1f7a15ffb1c9758636d8fd56d424d51e510f2280 (diff)
downloadlibssh-2113dc9d23a7069986a2282bfe5086138172739a.tar.gz
libssh-2113dc9d23a7069986a2282bfe5086138172739a.tar.xz
libssh-2113dc9d23a7069986a2282bfe5086138172739a.zip
tests: Check return values
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/torture_server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/server/torture_server.c b/tests/server/torture_server.c
index c6422af6..ed4a79a2 100644
--- a/tests/server/torture_server.c
+++ b/tests/server/torture_server.c
@@ -262,8 +262,10 @@ static int session_setup(void **state)
s->ssh.session = ssh_new();
assert_non_null(s->ssh.session);
- ssh_options_set(s->ssh.session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
- ssh_options_set(s->ssh.session, SSH_OPTIONS_HOST, TORTURE_SSH_SERVER);
+ rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
+ assert_return_code(s->ssh.session, rc);
+ rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_HOST, TORTURE_SSH_SERVER);
+ assert_return_code(s->ssh.session, rc);
/* Make sure no other configuration options from system will get used */
rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_PROCESS_CONFIG, &b);
assert_ssh_return_code(s->ssh.session, rc);