summaryrefslogtreecommitdiffstats
path: root/src/tests/leak_check.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-10-24 15:15:39 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-11-11 12:10:45 +0100
commit20a2be57d764f58c4a6532310331e26a3273ada8 (patch)
tree3658c8bce6bb65d3ac3318e5b07cb1bd944ad0dc /src/tests/leak_check.c
parent9c62d6619b87f1255ef6515280a20552fca9d925 (diff)
downloadsssd-20a2be57d764f58c4a6532310331e26a3273ada8.tar.gz
sssd-20a2be57d764f58c4a6532310331e26a3273ada8.tar.xz
sssd-20a2be57d764f58c4a6532310331e26a3273ada8.zip
TESTS: Check return value of check_leaks_pop
Reviewed-by: Petr Cech <pcech@redhat.com>
Diffstat (limited to 'src/tests/leak_check.c')
-rw-r--r--src/tests/leak_check.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/leak_check.c b/src/tests/leak_check.c
index 1eaa2cd09..79c8f05f6 100644
--- a/src/tests/leak_check.c
+++ b/src/tests/leak_check.c
@@ -131,7 +131,11 @@ bool
leak_check_teardown(void)
{
bool res;
- check_leaks_pop(global_talloc_context);
+ res = check_leaks_pop(global_talloc_context);
+ if (!res) {
+ _set_leak_err_msg("check_leaks_pop failed in leak_check_teardown");
+ }
+
if (snapshot_stack != NULL) {
_set_leak_err_msg("Exiting with a non-empty stack");
return false;