LCOV - code coverage report
Current view: top level - tests - common_check.c (source / functions) Hit Total Coverage
Test: .coverage.total Lines: 6 6 100.0 %
Date: 2015-10-19 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /*
       2             :    SSSD
       3             : 
       4             :    Memory leak/growth checks for check-based tests using talloc.
       5             : 
       6             :    Authors:
       7             :         Martin Nagy <mnagy@redhat.com>
       8             : 
       9             :    Copyright (C) Red Hat, Inc 2009
      10             : 
      11             :    This program is free software; you can redistribute it and/or modify
      12             :    it under the terms of the GNU General Public License as published by
      13             :    the Free Software Foundation; either version 3 of the License, or
      14             :    (at your option) any later version.
      15             : 
      16             :    This program is distributed in the hope that it will be useful,
      17             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      18             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19             :    GNU General Public License for more details.
      20             : 
      21             :    You should have received a copy of the GNU General Public License
      22             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      23             : */
      24             : 
      25             : #include <check.h>
      26             : 
      27             : #include "tests/common.h"
      28             : #include "tests/common_check.h"
      29             : 
      30          84 : void ck_leak_check_setup(void)
      31             : {
      32          84 :     fail_unless(leak_check_setup() == true,
      33             :                 "Cannot set up leaks test: %s\n", check_leaks_err_msg());
      34          84 : }
      35             : 
      36          84 : void ck_leak_check_teardown(void)
      37             : {
      38          84 :     fail_unless(leak_check_teardown() == true,
      39             :                 "Cannot tear down leaks test: %s\n", check_leaks_err_msg());
      40          84 : }

Generated by: LCOV version 1.10