summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel P. Berrange2017-08-29 18:04:52 +0200
committerDaniel P. Berrange2017-09-05 14:21:58 +0200
commit689ed13e73bdb5a5ca3366524475e3065fae854a (patch)
tree6f91badc14972dfacad1a83ab8db2f081e8e3bba /tests
parentio: add new qio_channel_{readv, writev, read, write}_all functions (diff)
downloadqemu-689ed13e73bdb5a5ca3366524475e3065fae854a.tar.gz
qemu-689ed13e73bdb5a5ca3366524475e3065fae854a.tar.xz
qemu-689ed13e73bdb5a5ca3366524475e3065fae854a.zip
io: fix check for handshake completion in TLS test
The TLS I/O channel test had mistakenly used && instead of || when checking for handshake completion. As a result it could terminate the handshake process before it had actually completed. This was harmless before but changes in GNUTLS 3.6.0 exposed this bug and caused the test suite to fail. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-io-channel-tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-io-channel-tls.c b/tests/test-io-channel-tls.c
index ff96877323..a210d01ba5 100644
--- a/tests/test-io-channel-tls.c
+++ b/tests/test-io-channel-tls.c
@@ -218,7 +218,7 @@ static void test_io_channel_tls(const void *opaque)
mainloop = g_main_context_default();
do {
g_main_context_iteration(mainloop, TRUE);
- } while (!clientHandshake.finished &&
+ } while (!clientHandshake.finished ||
!serverHandshake.finished);
g_assert(clientHandshake.failed == data->expectClientFail);