mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-12 05:34:41 -04:00
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 <daniels@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
cb9a2557e1
commit
01095a9ce4
4 changed files with 20 additions and 143 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue