summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-06-19 12:27:41 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-06-20 10:37:27 +0200
commitaf63cdbfe0c917e0dc921232f67295fdc48d1e32 (patch)
tree746d335abb2b4fb61ce043cb27cceea44e90a64a /src/tests
parent8d529465dea67a9daff91584191b0548d54eb9be (diff)
downloadsssd-af63cdbfe0c917e0dc921232f67295fdc48d1e32.tar.gz
sssd-af63cdbfe0c917e0dc921232f67295fdc48d1e32.tar.xz
sssd-af63cdbfe0c917e0dc921232f67295fdc48d1e32.zip
TESTS: sysdb_search_return_ENOENT - check mem leaks
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sysdb-tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index 711d8f493..3d67441bf 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -4424,6 +4424,7 @@ START_TEST (test_sysdb_search_return_ENOENT)
/* Setup */
ret = setup_sysdb_tests(&test_ctx);
fail_if(ret != EOK, "Could not set up the test");
+ check_leaks_push(test_ctx);
/* Search user */
ret = sysdb_search_user_by_name(test_ctx, test_ctx->domain,
@@ -4540,6 +4541,7 @@ START_TEST (test_sysdb_search_return_ENOENT)
/* TODO: test sysdb_search_selinux_config */
+ fail_unless(check_leaks_pop(test_ctx) == true, "Memory leak");
talloc_free(test_ctx);
}
END_TEST