aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-04 14:21:52 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-04 14:21:52 +0100
commit2df00fd84cbef7244325b2467d9e1d652a5c8629 (patch)
treeb97c5d433048a49b9a398d8eb281cd780072c344 /tests
parentd1d3beac330d301440ea64c463933aa9950c7df1 (diff)
downloadlibssh-2df00fd84cbef7244325b2467d9e1d652a5c8629.tar.gz
libssh-2df00fd84cbef7244325b2467d9e1d652a5c8629.tar.xz
libssh-2df00fd84cbef7244325b2467d9e1d652a5c8629.zip
tests: Try to fix torture_forward.
Diffstat (limited to 'tests')
-rw-r--r--tests/client/torture_forward.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/client/torture_forward.c b/tests/client/torture_forward.c
index a2115c87..73e6e60e 100644
--- a/tests/client/torture_forward.c
+++ b/tests/client/torture_forward.c
@@ -41,15 +41,15 @@ static void setup(void **state)
session = torture_ssh_session(host, user, password);
- assert_false(session == NULL);
+ assert_non_null(session);
*state = session;
}
static void teardown(void **state)
{
- ssh_session session = (ssh_session)*state;
+ ssh_session session = (ssh_session) *state;
- assert_false(session == NULL);
+ assert_non_null(session);
if (ssh_is_connected(session)) {
ssh_disconnect(session);
@@ -59,7 +59,7 @@ static void teardown(void **state)
static void torture_ssh_forward(void **state)
{
- ssh_session session = (ssh_session)*state;
+ ssh_session session = (ssh_session) *state;
#if 0
ssh_channel c;
#endif