OpenCoverage

xgetcwd.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/xgetcwd.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9char *-
10xgetcwd (void)-
11{-
12 char *cwd = getcwd (-
13 ((void *)0)-
14 , 0);-
15 if (! cwd
! cwdDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • readlink
FALSEevaluated 153 times by 6 tests
Evaluated by:
  • df
  • ln
  • pwd
  • readlink
  • realpath
  • stat
&&
3-153
16 (*
(*__errno_location ()) == 12Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • readlink
__errno_location ())
(*__errno_location ()) == 12Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • readlink
0-3
17 ==
(*__errno_location ()) == 12Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • readlink
0-3
18 12
(*__errno_location ()) == 12Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • readlink
0-3
19 )-
20 xalloc_die ();
never executed: xalloc_die ();
0
21 return
executed 156 times by 6 tests: return cwd;
Executed by:
  • df
  • ln
  • pwd
  • readlink
  • realpath
  • stat
cwd;
executed 156 times by 6 tests: return cwd;
Executed by:
  • df
  • ln
  • pwd
  • readlink
  • realpath
  • stat
156
22}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2