aboutsummaryrefslogtreecommitdiff
path: root/tests/client/torture_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/client/torture_session.c')
-rw-r--r--tests/client/torture_session.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/client/torture_session.c b/tests/client/torture_session.c
index 94296a3f..bdc11af2 100644
--- a/tests/client/torture_session.c
+++ b/tests/client/torture_session.c
@@ -92,7 +92,12 @@ static void torture_channel_read_error(void **state) {
if (rc == SSH_ERROR)
break;
}
- assert_true(rc == SSH_ERROR);
+#if OPENSSH_VERSION_MAJOR == 6 && OPENSSH_VERSION_MINOR >= 7
+ /* With openssh 6.7 this doesn't produce and error anymore */
+ assert_int_equal(rc, SSH_OK);
+#else
+ assert_int_equal(rc, SSH_ERROR);
+#endif
ssh_channel_free(channel);
}