LCOV - code coverage report
Current view: top level - strace - getcwd.c (source / functions) Hit Total Coverage
Test: strace-4.18.0.129.97bbb Code Coverage Lines: 7 7 100.0 %
Date: 2017-07-31 03:46:08 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                 :         16 : SYS_FUNC(getcwd)
       4                 :            : {
       5         [ +  + ]:         16 :         if (exiting(tcp)) {
       6         [ +  + ]:          8 :                 if (syserror(tcp))
       7                 :          6 :                         printaddr(tcp->u_arg[0]);
       8                 :            :                 else
       9                 :          2 :                         printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
      10                 :          8 :                 tprintf(", %" PRI_klu, tcp->u_arg[1]);
      11                 :            :         }
      12                 :         16 :         return 0;
      13                 :            : }

Generated by: LCOV version 1.11