diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-14 00:14:45 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-14 01:20:58 +0200 |
commit | 49c55179349e43e2151cb8d043c9d063362116f9 (patch) | |
tree | 16b6f2a5ba7eba77a97d97958624df3c93c4075e /main/qemu/fix-test-io-channel-tls-handshake-completion.patch | |
parent | 8caa90ed51c205278df682f0c1f3d97defa882f9 (diff) | |
download | aports-49c55179349e43e2151cb8d043c9d063362116f9.tar.bz2 aports-49c55179349e43e2151cb8d043c9d063362116f9.tar.xz |
main/qemu: run tests
Diffstat (limited to 'main/qemu/fix-test-io-channel-tls-handshake-completion.patch')
-rw-r--r-- | main/qemu/fix-test-io-channel-tls-handshake-completion.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/qemu/fix-test-io-channel-tls-handshake-completion.patch b/main/qemu/fix-test-io-channel-tls-handshake-completion.patch new file mode 100644 index 0000000000..552e17769b --- /dev/null +++ b/main/qemu/fix-test-io-channel-tls-handshake-completion.patch @@ -0,0 +1,36 @@ +From 689ed13e73bdb5a5ca3366524475e3065fae854a Mon Sep 17 00:00:00 2001 +From: "Daniel P. Berrange" <berrange@redhat.com> +Date: Tue, 29 Aug 2017 17:04:52 +0100 +Subject: [PATCH] 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> + +Patch-Source: https://src.fedoraproject.org/rpms/qemu/blob/master/f/1017-io-fix-check-for-handshake-completion-in-TLS-test.patch +--- + tests/test-io-channel-tls.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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); +-- +2.13.5 + |