[PATCH wayland 8/8] display-test: disable leak check in tests that use pthread

Marek Chalupa mchqwerty at gmail.com
Fri Dec 19 05:53:07 PST 2014


pthread is leaking and it makes our tests fail.

Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
---
 tests/display-test.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/display-test.c b/tests/display-test.c
index 6505507..d0cff85 100644
--- a/tests/display-test.c
+++ b/tests/display-test.c
@@ -400,6 +400,8 @@ thread_read_error(void *data)
 static void
 threading_post_err(void)
 {
+	DISABLE_LEAK_CHECKS;
+
 	struct client *c = client_connect();
 	pthread_t thread;
 
@@ -464,6 +466,8 @@ thread_prepare_and_read(void *data)
 static void
 threading_cancel_read(void)
 {
+	DISABLE_LEAK_CHECKS;
+
 	struct client *c = client_connect();
 	pthread_t th1, th2, th3;
 
@@ -501,6 +505,8 @@ TEST(threading_cancel_read_tst)
 static void
 threading_read_eagain(void)
 {
+	DISABLE_LEAK_CHECKS;
+
 	struct client *c = client_connect();
 	pthread_t th1, th2, th3;
 
@@ -557,6 +563,8 @@ thread_prepare_and_read2(void *data)
 static void
 threading_read_after_error(void)
 {
+	DISABLE_LEAK_CHECKS;
+
 	struct client *c = client_connect();
 	pthread_t thread;
 
-- 
2.1.0



More information about the wayland-devel mailing list