diff options
author | Marek Chalupa <mchqwerty@gmail.com> | 2014-12-19 14:53:06 +0100 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2015-01-28 17:17:22 +0000 |
commit | 68c11c48c0f2bff69a10af503238cbf5d07a5df0 (patch) | |
tree | 77e5b5ccc6b1cccd5c283eb73d317181163c2dce /tests/test-runner.c | |
parent | 5c70c031903352530f701ca4badf4be1763984a4 (diff) | |
download | wayland-68c11c48c0f2bff69a10af503238cbf5d07a5df0.tar.gz |
tests: add possibility to disable leak check for single test
In tests that are using external libraries (i. e. pthread) we
can get failure because of leaks in the external library.
Until we have some better solution (if ever), let these (and only these)
tests to disable leak checks.
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'tests/test-runner.c')
-rw-r--r-- | tests/test-runner.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-runner.c b/tests/test-runner.c index 2e6ad33..70fa0ae 100644 --- a/tests/test-runner.c +++ b/tests/test-runner.c @@ -175,6 +175,8 @@ check_leaks(int supposed_alloc, int supposed_fds) num_fds - supposed_fds); abort(); } + } else { + fprintf(stderr, "Leak checks disabled\n"); } } |