aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-01-14 14:35:44 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-01-14 14:35:44 +0100
commitf8361d324ea44187665fccf9f7f762d023686474 (patch)
tree85097445213b2c7a211db5eaa7eebd48a239a1e6 /tests
parent0b46f68c5fda153c9ca164766b83da430d1ef02e (diff)
downloadlibssh-f8361d324ea44187665fccf9f7f762d023686474.tar.gz
libssh-f8361d324ea44187665fccf9f7f762d023686474.tar.xz
libssh-f8361d324ea44187665fccf9f7f762d023686474.zip
Fix torture_connect_double so it tests the right thing
Diffstat (limited to 'tests')
-rw-r--r--tests/client/torture_connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/client/torture_connect.c b/tests/client/torture_connect.c
index e2b8ba29..92fb7210 100644
--- a/tests/client/torture_connect.c
+++ b/tests/client/torture_connect.c
@@ -65,11 +65,11 @@ static void torture_connect_double(void **state) {
rc = ssh_options_set(session, SSH_OPTIONS_HOST, "localhost");
assert_true(rc == SSH_OK);
rc = ssh_connect(session);
- assert_true(rc != SSH_OK);
+ assert_true(rc == SSH_OK);
ssh_disconnect(session);
rc = ssh_connect(session);
- assert_true(rc != SSH_OK);
+ assert_true(rc == SSH_OK);
}