mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-01 01:40:39 -05:00
Add simple memory leak check to all tests.
Wrap all tests with a memory balance check to detect potential memory leaks. Fixed a few tests that had memory leaks contained in the tests themselves. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
parent
9086b60d81
commit
a0e590a0f3
5 changed files with 37 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef _TEST_RUNNER_H_
|
||||
#define _TEST_RUNNER_H_
|
||||
|
||||
struct test {
|
||||
const char *name;
|
||||
void (*run)(void);
|
||||
|
|
@ -12,3 +15,5 @@ struct test {
|
|||
}; \
|
||||
\
|
||||
static void name(void)
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue