mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-16 05:34:32 -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
|
|
@ -63,11 +63,8 @@ count_open_fds(void);
|
|||
void
|
||||
exec_fd_leak_check(int nr_expected_fds); /* never returns */
|
||||
|
||||
int
|
||||
get_current_alloc_num(void);
|
||||
|
||||
void
|
||||
check_leaks(int supposed_allocs, int supposed_fds);
|
||||
check_fd_leaks(int supposed_fds);
|
||||
|
||||
/*
|
||||
* set/reset the timeout in seconds. The timeout starts
|
||||
|
|
@ -89,10 +86,10 @@ test_sleep(unsigned int);
|
|||
void
|
||||
test_disable_coredumps(void);
|
||||
|
||||
#define DISABLE_LEAK_CHECKS \
|
||||
do { \
|
||||
extern int leak_check_enabled; \
|
||||
leak_check_enabled = 0; \
|
||||
#define DISABLE_LEAK_CHECKS \
|
||||
do { \
|
||||
extern int fd_leak_check_enabled; \
|
||||
fd_leak_check_enabled = 0; \
|
||||
} while (0);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue