OpenCoverage

fclose.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/fclose.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6int-
7rpl_fclose (FILE *fp)-
8{-
9 int saved_errno = 0;-
10 int fd;-
11 int result = 0;-
12-
13-
14 fd = fileno (fp);-
15 if (fd < 0
fd < 0Description
TRUEnever evaluated
FALSEevaluated 90762 times by 106 tests
Evaluated by:
  • [
  • b2sum
  • base32
  • base64
  • basename
  • cat
  • chcon
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • comm
  • cp
  • csplit
  • cut
  • date
  • dd
  • df
  • dir
  • dircolors
  • dirname
  • du
  • echo
  • env
  • ...
)
0-90762
16 return
never executed: return fclose (fp);
fclose (fp);
never executed: return fclose (fp);
0
17-
18-
19-
20-
21 if ((!(__freading (fp) != 0)
!(__freading (fp) != 0)Description
TRUEevaluated 79246 times by 106 tests
Evaluated by:
  • [
  • b2sum
  • base32
  • base64
  • basename
  • cat
  • chcon
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • comm
  • cp
  • csplit
  • cut
  • date
  • dd
  • df
  • dir
  • dircolors
  • dirname
  • du
  • echo
  • env
  • ...
FALSEevaluated 11516 times by 39 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • cksum
  • comm
  • cp
  • cut
  • date
  • df
  • dircolors
  • du
  • expand
  • fmt
  • fold
  • ginstall
  • join
  • ln
  • md5sum
  • mv
  • nl
  • od
  • paste
  • pr
  • ptx
  • rm
  • ...
|| lseek (fileno (fp), 0,
lseek (fileno ..., 0, 1 ) != -1Description
TRUEevaluated 8312 times by 39 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • cksum
  • comm
  • cp
  • cut
  • date
  • df
  • dircolors
  • du
  • expand
  • fmt
  • fold
  • ginstall
  • join
  • ln
  • md5sum
  • mv
  • nl
  • od
  • paste
  • pr
  • ptx
  • rm
  • ...
FALSEevaluated 3204 times by 25 tests
Evaluated by:
  • base32
  • base64
  • cksum
  • cp
  • cut
  • expand
  • fold
  • md5sum
  • mv
  • nl
  • od
  • paste
  • pr
  • rm
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
  • shuf
  • sort
  • sum
  • tsort
  • unexpand
  • uniq
3204-79246
22 1
lseek (fileno ..., 0, 1 ) != -1Description
TRUEevaluated 8312 times by 39 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • cksum
  • comm
  • cp
  • cut
  • date
  • df
  • dircolors
  • du
  • expand
  • fmt
  • fold
  • ginstall
  • join
  • ln
  • md5sum
  • mv
  • nl
  • od
  • paste
  • pr
  • ptx
  • rm
  • ...
FALSEevaluated 3204 times by 25 tests
Evaluated by:
  • base32
  • base64
  • cksum
  • cp
  • cut
  • expand
  • fold
  • md5sum
  • mv
  • nl
  • od
  • paste
  • pr
  • rm
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
  • shuf
  • sort
  • sum
  • tsort
  • unexpand
  • uniq
3204-8312
23 ) != -1
lseek (fileno ..., 0, 1 ) != -1Description
TRUEevaluated 8312 times by 39 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • cksum
  • comm
  • cp
  • cut
  • date
  • df
  • dircolors
  • du
  • expand
  • fmt
  • fold
  • ginstall
  • join
  • ln
  • md5sum
  • mv
  • nl
  • od
  • paste
  • pr
  • ptx
  • rm
  • ...
FALSEevaluated 3204 times by 25 tests
Evaluated by:
  • base32
  • base64
  • cksum
  • cp
  • cut
  • expand
  • fold
  • md5sum
  • mv
  • nl
  • od
  • paste
  • pr
  • rm
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
  • shuf
  • sort
  • sum
  • tsort
  • unexpand
  • uniq
)
3204-8312
24 && -
25 rpl_fflush
rpl_fflush (fp)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 87554 times by 106 tests
Evaluated by:
  • [
  • b2sum
  • base32
  • base64
  • basename
  • cat
  • chcon
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • comm
  • cp
  • csplit
  • cut
  • date
  • dd
  • df
  • dir
  • dircolors
  • dirname
  • du
  • echo
  • env
  • ...
4-87554
26 (fp)
rpl_fflush (fp)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 87554 times by 106 tests
Evaluated by:
  • [
  • b2sum
  • base32
  • base64
  • basename
  • cat
  • chcon
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • comm
  • cp
  • csplit
  • cut
  • date
  • dd
  • df
  • dir
  • dircolors
  • dirname
  • du
  • echo
  • env
  • ...
)
4-87554
27 saved_errno =
executed 4 times by 1 test: saved_errno = (*__errno_location ()) ;
Executed by:
  • mktemp
4
28 (*__errno_location ())
executed 4 times by 1 test: saved_errno = (*__errno_location ()) ;
Executed by:
  • mktemp
4
29 ;
executed 4 times by 1 test: saved_errno = (*__errno_location ()) ;
Executed by:
  • mktemp
4
30 result = fclose (fp);-
31-
32-
33-
34-
35 if (saved_errno != 0
saved_errno != 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 90758 times by 106 tests
Evaluated by:
  • [
  • b2sum
  • base32
  • base64
  • basename
  • cat
  • chcon
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • comm
  • cp
  • csplit
  • cut
  • date
  • dd
  • df
  • dir
  • dircolors
  • dirname
  • du
  • echo
  • env
  • ...
)
4-90758
36 {-
37 -
38 (*__errno_location ()) -
39 = saved_errno;-
40 result = -
41 (-1)-
42 ;-
43 }
executed 4 times by 1 test: end of block
Executed by:
  • mktemp
4
44-
45 return
executed 90762 times by 106 tests: return result;
Executed by:
  • [
  • b2sum
  • base32
  • base64
  • basename
  • cat
  • chcon
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • comm
  • cp
  • csplit
  • cut
  • date
  • dd
  • df
  • dir
  • dircolors
  • dirname
  • du
  • echo
  • env
  • ...
result;
executed 90762 times by 106 tests: return result;
Executed by:
  • [
  • b2sum
  • base32
  • base64
  • basename
  • cat
  • chcon
  • chgrp
  • chmod
  • chown
  • chroot
  • cksum
  • comm
  • cp
  • csplit
  • cut
  • date
  • dd
  • df
  • dir
  • dircolors
  • dirname
  • du
  • echo
  • env
  • ...
90762
46}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2