io: fix temp directory used by test-io-channel-tls test
PATCH 1/1 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 <[email protected]>
Signed-off-by Daniel P. Berrange <[email protected]>
--- tests/test-io-channel-tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/test-io-channel-tls.c +2 -2
@@ -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 );
Signature · 1 line
2.13.3
Quoted 15 lines · * Daniel P. Berrange ([email protected]) wrote:
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 <[email protected]>Signed-off-by Daniel P. Berrange <[email protected]>--- tests/test-io-channel-tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/test-io-channel-tls.c +0
-0
tests/test-io-channel-tls.c static void test_io_channel_tls(const void *opaque) · line 131
Quoted 7 lines
tests/test-io-channel-tls.c +2
-2@@ -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/"
Reviewed-by Dr. David Alan Gilbert <[email protected]>
Quoted 6 lines
tests/test-io-channel-tls.c +0
-0mkdir (CLIENT_CERT_DIR ,0700 );mkdir (SERVER_CERT_DIR ,0700 );Signature · 1 line
2.13.3
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK