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:
Daniel Stone 2018-08-24 16:15:59 +01:00
parent cb9a2557e1
commit 01095a9ce4
4 changed files with 20 additions and 143 deletions

View file

@ -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