4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek/*
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek SSSD
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek Memory leak/growth checks for check-based tests using talloc.
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek Authors:
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek Martin Nagy <mnagy@redhat.com>
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek Copyright (C) Red Hat, Inc 2009
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek This program is free software; you can redistribute it and/or modify
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek it under the terms of the GNU General Public License as published by
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek the Free Software Foundation; either version 3 of the License, or
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek (at your option) any later version.
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek This program is distributed in the hope that it will be useful,
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek GNU General Public License for more details.
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek You should have received a copy of the GNU General Public License
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek*/
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek#ifndef __TESTS_COMMON_CHECK_H__
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek#define __TESTS_COMMON_CHECK_H__
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek#include "tests/common.h"
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozekvoid ck_leak_check_setup(void);
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozekvoid ck_leak_check_teardown(void);
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek#define ck_leaks_push(ctx) check_leaks_push(ctx)
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek#define ck_leaks_pop(ctx) fail_unless(check_leaks_pop(ctx) == true, check_leaks_err_msg())
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek
4139a7a731f2831963a42b26aac111422be28792Jakub Hrozek#endif /* __TESTS_COMMON_CHECK_H__ */