LCOV - code coverage report
Current view: top level - test - test-dlopen.c (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 4 4 100.0 %
Date: 2019-08-23 13:36:53 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : 
       3                 :            : #include <dlfcn.h>
       4                 :            : #include <stdlib.h>
       5                 :            : 
       6                 :            : #include "macro.h"
       7                 :            : 
       8                 :         20 : int main(int argc, char **argv) {
       9                 :            :         void *handle;
      10                 :            : 
      11         [ -  + ]:         20 :         assert_se(handle = dlopen(argv[1], RTLD_NOW));
      12         [ -  + ]:         20 :         assert_se(dlclose(handle) == 0);
      13                 :            : 
      14                 :         20 :         return EXIT_SUCCESS;
      15                 :            : }

Generated by: LCOV version 1.14