aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-17 13:38:13 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-17 13:38:13 +0200
commit937268eb3e5462ba9ad556dd0d667ae565c7c603 (patch)
tree0c32b43dc8ce561550892968b4804c72241ce7e0 /tests/unittests
parent8be7ece1f59fe0a48f1e2bcf8be6fbd88ba7c68f (diff)
downloadlibssh-937268eb3e5462ba9ad556dd0d667ae565c7c603.tar.gz
libssh-937268eb3e5462ba9ad556dd0d667ae565c7c603.tar.xz
libssh-937268eb3e5462ba9ad556dd0d667ae565c7c603.zip
torture: Fixed fd check.
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/torture_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/torture_options.c b/tests/unittests/torture_options.c
index 748c89a5..bba5500a 100644
--- a/tests/unittests/torture_options.c
+++ b/tests/unittests/torture_options.c
@@ -82,7 +82,7 @@ START_TEST (torture_options_set_fd)
rc = ssh_options_set(session, SSH_OPTIONS_FD, NULL);
ck_assert(rc == 0);
- ck_assert(session->fd == -1);
+ ck_assert(session->fd == SSH_INVALID_SOCKET);
}
END_TEST