LCOV - code coverage report
Current view: top level - strace_git - getcwd.c (source / functions) Hit Total Coverage
Test: strace-4.16.0.69.f1ea-dirty Code Coverage Lines: 7 7 100.0 %
Date: 2017-03-18 00:38:52 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 4 100.0 %

           Branch data     Line data    Source code
       1                 :            : #include "defs.h"
       2                 :            : 
       3                 :         48 : SYS_FUNC(getcwd)
       4                 :            : {
       5         [ +  + ]:         48 :         if (exiting(tcp)) {
       6         [ +  + ]:         24 :                 if (syserror(tcp))
       7                 :         18 :                         printaddr(tcp->u_arg[0]);
       8                 :            :                 else
       9                 :          6 :                         printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
      10                 :         24 :                 tprintf(", %" PRI_klu, tcp->u_arg[1]);
      11                 :            :         }
      12                 :         48 :         return 0;
      13                 :            : }

Generated by: LCOV version 1.12