OpenCoverage

closein.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/closein.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7static const char *file_name;-
8-
9-
10-
11-
12void-
13close_stdin_set_file_name (const char *file)-
14{-
15 file_name = file;-
16}
never executed: end of block
0
17void-
18close_stdin (void)-
19{-
20 -
21 _Bool -
22 fail = -
23 0-
24 ;-
25-
26-
27-
28-
29-
30 if (freadahead (
freadahead ( stdin ) > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 2962 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
2-2962
31 stdin
freadahead ( stdin ) > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 2962 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
2-2962
32 ) > 0
freadahead ( stdin ) > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 2962 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
)
2-2962
33 {-
34-
35-
36 if (-
37 rpl_fseeko
rpl_fseeko ( s... , 0, 1 ) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
0-2
38 (
rpl_fseeko ( s... , 0, 1 ) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
0-2
39 stdin
rpl_fseeko ( s... , 0, 1 ) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
0-2
40 , 0,
rpl_fseeko ( s... , 0, 1 ) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
0-2
41 1
rpl_fseeko ( s... , 0, 1 ) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
0-2
42 ) == 0
rpl_fseeko ( s... , 0, 1 ) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
&&
0-2
43 rpl_fflush
rpl_fflush ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • rm
0-2
44 (
rpl_fflush ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • rm
0-2
45 stdin
rpl_fflush ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • rm
0-2
46 ) != 0
rpl_fflush ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • rm
)
0-2
47 fail =
never executed: fail = 1 ;
0
48 1
never executed: fail = 1 ;
0
49 ;
never executed: fail = 1 ;
0
50 }
executed 2 times by 1 test: end of block
Executed by:
  • rm
2
51 if (close_stream (
close_stream ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 2964 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
0-2964
52 stdin
close_stream ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 2964 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
0-2964
53 ) != 0
close_stream ( stdin ) != 0Description
TRUEnever evaluated
FALSEevaluated 2964 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
)
0-2964
54 fail =
never executed: fail = 1 ;
0
55 1
never executed: fail = 1 ;
0
56 ;
never executed: fail = 1 ;
0
57 if (fail
failDescription
TRUEnever evaluated
FALSEevaluated 2964 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
)
0-2964
58 {-
59-
60-
61 char const *close_error = -
62 dcgettext (((void *)0), -
63 "error closing file"-
64 , 5)-
65 ;-
66 if (file_name
file_nameDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
67 error (0,
never executed: error (0, (*__errno_location ()) , "%s: %s", quotearg_colon (file_name), close_error);
0
68 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , "%s: %s", quotearg_colon (file_name), close_error);
0
69 , "%s: %s", quotearg_colon (file_name),
never executed: error (0, (*__errno_location ()) , "%s: %s", quotearg_colon (file_name), close_error);
0
70 close_error);
never executed: error (0, (*__errno_location ()) , "%s: %s", quotearg_colon (file_name), close_error);
0
71 else-
72 error (0,
never executed: error (0, (*__errno_location ()) , "%s", close_error);
0
73 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , "%s", close_error);
0
74 , "%s", close_error);
never executed: error (0, (*__errno_location ()) , "%s", close_error);
0
75 }-
76-
77 close_stdout ();-
78-
79 if (fail
failDescription
TRUEnever evaluated
FALSEevaluated 2964 times by 5 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
)
0-2964
80 _exit (exit_failure);
never executed: _exit (exit_failure);
0
81}
executed 2964 times by 5 tests: end of block
Executed by:
  • cp
  • ginstall
  • ln
  • mv
  • rm
2964
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2