>From 126ce0bac425e8ec9b776565be9dd7546bdb31ce Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Thu, 19 Jun 2014 12:27:41 +0100 Subject: [PATCH 04/24] TESTS: sysdb_search_return_ENOENT - check mem leaks Reviewed-by: Stephen Gallagher (cherry picked from commit af63cdbfe0c917e0dc921232f67295fdc48d1e32) --- src/tests/sysdb-tests.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 7dd695dbf3a8720a3c1f3028eecf93a4562f1a66..4e3eef5c8837391f1587e2a643b7c5cfdf8fad62 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -4514,6 +4514,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->sysdb, @@ -4642,6 +4643,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 -- 2.4.3