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-temp-directory.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-temp-directory.patch')
-rw-r--r-- | main/qemu/fix-test-io-channel-tls-temp-directory.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/qemu/fix-test-io-channel-tls-temp-directory.patch b/main/qemu/fix-test-io-channel-tls-temp-directory.patch new file mode 100644 index 0000000000..283f85a70f --- /dev/null +++ b/main/qemu/fix-test-io-channel-tls-temp-directory.patch @@ -0,0 +1,36 @@ +From d4adf9675801cd90e66ecfcd6a54ca1abc5a6698 Mon Sep 17 00:00:00 2001 +From: "Daniel P. Berrange" <berrange@redhat.com> +Date: Fri, 21 Jul 2017 12:47:39 +0100 +Subject: [PATCH] io: fix temp directory used by test-io-channel-tls test + +The test-io-channel-tls test was mistakenly using two of the +same directories as test-crypto-tlssession. This causes a +sporadic failure when using make -j$BIGNUM. + +Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com> +Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> +Signed-off-by: Daniel P. Berrange <berrange@redhat.com> + +Patch-Source: https://src.fedoraproject.org/rpms/qemu/blob/master/f/1018-io-fix-temp-directory-used-by-test-io-channel-tls-te.patch +--- + tests/test-io-channel-tls.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test-io-channel-tls.c b/tests/test-io-channel-tls.c +index 8eaa208e1b..ff96877323 100644 +--- a/tests/test-io-channel-tls.c ++++ b/tests/test-io-channel-tls.c +@@ -127,8 +127,8 @@ static void test_io_channel_tls(const void *opaque) + /* We'll use this for our fake client-server connection */ + g_assert(socketpair(AF_UNIX, SOCK_STREAM, 0, channel) == 0); + +-#define CLIENT_CERT_DIR "tests/test-crypto-tlssession-client/" +-#define SERVER_CERT_DIR "tests/test-crypto-tlssession-server/" ++#define CLIENT_CERT_DIR "tests/test-io-channel-tls-client/" ++#define SERVER_CERT_DIR "tests/test-io-channel-tls-server/" + mkdir(CLIENT_CERT_DIR, 0700); + mkdir(SERVER_CERT_DIR, 0700); + +-- +2.13.5 + |