summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2014-12-19 14:53:07 +0100
committerDaniel Stone <daniels@collabora.com>2015-01-28 17:17:24 +0000
commitf858550cf4c0df4cdec1274eb55e0a780c6dc83c (patch)
treea6250f2227b535724a59b6685eb9778018e616fc
parent68c11c48c0f2bff69a10af503238cbf5d07a5df0 (diff)
downloadwayland-f858550cf4c0df4cdec1274eb55e0a780c6dc83c.tar.gz
display-test: disable leak check in tests that use pthread
pthread is leaking and it makes our tests fail. Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
-rw-r--r--tests/display-test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/display-test.c b/tests/display-test.c
index 48c4cb9..0f86215 100644
--- a/tests/display-test.c
+++ b/tests/display-test.c
@@ -403,6 +403,8 @@ thread_read_error(void *data)
static void
threading_post_err(void)
{
+ DISABLE_LEAK_CHECKS;
+
struct client *c = client_connect();
pthread_t thread;
@@ -467,6 +469,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;
@@ -504,6 +508,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;
@@ -560,6 +566,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;