changeset 859:10f6ce479e1c

In Debug builds, this test was failing randomly
author Sebastien Decugis <sdecugis@freediameter.net>
date Sun, 21 Oct 2012 22:38:44 +0200
parents 3483d83140ef
children 0172278ddafe
files tests/testcnx.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/testcnx.c	Sun Oct 21 22:22:12 2012 +0200
+++ b/tests/testcnx.c	Sun Oct 21 22:38:44 2012 +0200
@@ -1526,13 +1526,14 @@
 			CHECK( 0, fd_event_timedget(myfifo, &now, ETIMEDOUT, &ev_code, NULL, (void *)&rcv_buf) );
 			free(rcv_buf);
 		} while (ev_code != FDEVP_CNX_MSG_RECV);
-		fd_event_destroy(&myfifo, free);
 		
 		/* Now close the connection */
 		CHECK( 0, pthread_create(&thr, NULL, destroy_thr, client_side) );
 		fd_cnx_destroy(server_side);
 		CHECK( 0, pthread_join(thr, NULL) );
 		
+		fd_event_destroy(&myfifo, free);
+		
 		/* Free the credentials */
 		gnutls_certificate_free_keys(hf.creds);
 		gnutls_certificate_free_cas(hf.creds);
"Welcome to our mercurial repository"