summaryrefslogtreecommitdiffstats
path: root/src/tests/cwrap
diff options
context:
space:
mode:
authorPetr Cech <pcech@redhat.com>2016-04-11 00:26:19 -0400
committerLukas Slebodnik <lslebodn@redhat.com>2016-04-12 10:04:59 +0200
commit2a5cf841dec2785333117a293fcd8c875ace28b9 (patch)
treee18665ca64a8f2a974be3f11caa2e4329b346171 /src/tests/cwrap
parentd0e0cf6ee47ab538efc47c7882f498f1b5e0f0c7 (diff)
downloadsssd-2a5cf841dec2785333117a293fcd8c875ace28b9.tar.gz
sssd-2a5cf841dec2785333117a293fcd8c875ace28b9.tar.xz
sssd-2a5cf841dec2785333117a293fcd8c875ace28b9.zip
TESTS: global_talloc_context push/pop remove
Push/pop global_talloc_context into check_leaks is redudant. It is done in leak_check_setup() and leak_check_teardown() functions in src/tests/check_leaks. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tests/cwrap')
-rw-r--r--src/tests/cwrap/test_become_user.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tests/cwrap/test_become_user.c b/src/tests/cwrap/test_become_user.c
index feb688952..f08182ce0 100644
--- a/src/tests/cwrap/test_become_user.c
+++ b/src/tests/cwrap/test_become_user.c
@@ -80,7 +80,6 @@ void test_switch_user(void **state)
assert_true(leak_check_setup());
- check_leaks_push(global_talloc_context);
tmp_ctx = talloc_new(global_talloc_context);
assert_non_null(tmp_ctx);
@@ -123,7 +122,6 @@ void test_switch_user(void **state)
assert_true(check_leaks_pop(tmp_ctx));
talloc_free(tmp_ctx);
- assert_true(check_leaks_pop(global_talloc_context));
assert_true(leak_check_teardown());
}