OpenCoverage

close-stream.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/close-stream.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7int-
8close_stream (FILE *stream)-
9{-
10 const -
11 _Bool -
12 some_pending = (__fpending (stream) != 0);-
13 const -
14 _Bool -
15 prev_fail = (ferror_unlocked (stream) != 0);-
16 const -
17 _Bool -
18 fclose_fail = (-
19 rpl_fclose -
20 (stream) != 0);-
21 if (prev_fail
prev_failDescription
TRUEnever evaluated
FALSEevaluated 78835 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
  • ...
|| (fclose_fail
fclose_failDescription
TRUEevaluated 28 times by 15 tests
Evaluated by:
  • chmod
  • cp
  • dd
  • ln
  • mkdir
  • mktemp
  • mv
  • printf
  • rm
  • rmdir
  • sleep
  • tail
  • test
  • timeout
  • touch
FALSEevaluated 78807 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
  • ...
&& (some_pending
some_pendingDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 24 times by 14 tests
Evaluated by:
  • chmod
  • cp
  • dd
  • ln
  • mkdir
  • mv
  • printf
  • rm
  • rmdir
  • sleep
  • tail
  • test
  • timeout
  • touch
||
0-78835
22 (*
(*__errno_location ()) != 9Description
TRUEnever evaluated
FALSEevaluated 24 times by 14 tests
Evaluated by:
  • chmod
  • cp
  • dd
  • ln
  • mkdir
  • mv
  • printf
  • rm
  • rmdir
  • sleep
  • tail
  • test
  • timeout
  • touch
__errno_location ())
(*__errno_location ()) != 9Description
TRUEnever evaluated
FALSEevaluated 24 times by 14 tests
Evaluated by:
  • chmod
  • cp
  • dd
  • ln
  • mkdir
  • mv
  • printf
  • rm
  • rmdir
  • sleep
  • tail
  • test
  • timeout
  • touch
0-24
23 !=
(*__errno_location ()) != 9Description
TRUEnever evaluated
FALSEevaluated 24 times by 14 tests
Evaluated by:
  • chmod
  • cp
  • dd
  • ln
  • mkdir
  • mv
  • printf
  • rm
  • rmdir
  • sleep
  • tail
  • test
  • timeout
  • touch
0-24
24 9
(*__errno_location ()) != 9Description
TRUEnever evaluated
FALSEevaluated 24 times by 14 tests
Evaluated by:
  • chmod
  • cp
  • dd
  • ln
  • mkdir
  • mv
  • printf
  • rm
  • rmdir
  • sleep
  • tail
  • test
  • timeout
  • touch
0-24
25 )))-
26 {-
27 if (! fclose_fail
! fclose_failDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
)
0-4
28 -
29 (*
never executed: (*__errno_location ()) = 0;
__errno_location ())
never executed: (*__errno_location ()) = 0;
0
30 = 0;
never executed: (*__errno_location ()) = 0;
0
31 return
executed 4 times by 1 test: return (-1) ;
Executed by:
  • mktemp
executed 4 times by 1 test: return (-1) ;
Executed by:
  • mktemp
4
32 (-1)
executed 4 times by 1 test: return (-1) ;
Executed by:
  • mktemp
4
33 ;
executed 4 times by 1 test: return (-1) ;
Executed by:
  • mktemp
4
34 }-
35-
36 return
executed 78831 times by 106 tests: return 0;
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
  • ...
0;
executed 78831 times by 106 tests: return 0;
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
  • ...
78831
37}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2