From 01095a9ce4d8457ee2f221848b9805c4b5cffc95 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 24 Aug 2018 16:15:59 +0100 Subject: tests: Remove memory leak checking infrastructure There are far better ways to detect memory leaks, such as either valgrind or ASan. Having Meson makes it really easy to use these tools in our tests, and we can do that in CI as well. Having these local wrappers actually completely broke ASan usage, so remove them in favour of using the more powerful options. Signed-off-by: Daniel Stone Reviewed-by: Pekka Paalanen Reviewed-by: Peter Hutterer --- tests/test-compositor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/test-compositor.c') diff --git a/tests/test-compositor.c b/tests/test-compositor.c index 0631f61..72f6351 100644 --- a/tests/test-compositor.c +++ b/tests/test-compositor.c @@ -156,7 +156,7 @@ run_client(void (*client_main)(void *data), void *data, int wayland_sock, int client_pipe) { char s[8]; - int cur_alloc, cur_fds; + int cur_fds; int can_continue = 0; /* Wait until display signals that client can continue */ @@ -169,7 +169,6 @@ run_client(void (*client_main)(void *data), void *data, snprintf(s, sizeof s, "%d", wayland_sock); setenv("WAYLAND_SOCKET", s, 0); - cur_alloc = get_current_alloc_num(); cur_fds = count_open_fds(); client_main(data); @@ -182,7 +181,7 @@ run_client(void (*client_main)(void *data), void *data, if (!getenv("WAYLAND_SOCKET")) cur_fds--; - check_leaks(cur_alloc, cur_fds); + check_fd_leaks(cur_fds); } static struct client_info * -- cgit v1.2.3-70-g09d2