diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-01 13:22:49 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-17 11:43:22 +0200 |
commit | 4139a7a731f2831963a42b26aac111422be28792 (patch) | |
tree | c69d00109216ecaae36d54f3877946d89e16de17 /src/tests/ipa_hbac-tests.c | |
parent | 714ba5f50551a42df324714358dc379b351d4a53 (diff) | |
download | sssd-4139a7a731f2831963a42b26aac111422be28792.tar.gz sssd-4139a7a731f2831963a42b26aac111422be28792.tar.xz sssd-4139a7a731f2831963a42b26aac111422be28792.zip |
Make leak checks usable in tests that do not utilize check
* Remove check-specific failure reporting from common_check.c
* Check-specific abstraction over memleak checks
* Rename common_check.c to leak_check.c
Diffstat (limited to 'src/tests/ipa_hbac-tests.c')
-rw-r--r-- | src/tests/ipa_hbac-tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/ipa_hbac-tests.c b/src/tests/ipa_hbac-tests.c index 330e49e7c..3c64fe044 100644 --- a/src/tests/ipa_hbac-tests.c +++ b/src/tests/ipa_hbac-tests.c @@ -26,7 +26,7 @@ #include <sys/stat.h> #include <talloc.h> -#include "tests/common.h" +#include "tests/common_check.h" #include "providers/ipa/ipa_hbac.h" #define HBAC_TEST_USER "testuser" @@ -815,8 +815,8 @@ Suite *hbac_test_suite (void) TCase *tc_hbac = tcase_create("HBAC_rules"); tcase_add_checked_fixture(tc_hbac, - leak_check_setup, - leak_check_teardown); + ck_leak_check_setup, + ck_leak_check_teardown); tcase_add_test(tc_hbac, ipa_hbac_test_allow_all); tcase_add_test(tc_hbac, ipa_hbac_test_allow_user); |