OpenCoverage

mktemp.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/mktemp.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static const char *default_template = "tmp.XXXXXXXXXX";-
5-
6-
7-
8enum-
9{-
10 SUFFIX_OPTION = 0x7f + 1,-
11};-
12-
13static struct option const longopts[] =-
14{-
15 {"directory", -
16 0-
17 , -
18 ((void *)0)-
19 , 'd'},-
20 {"quiet", -
21 0-
22 , -
23 ((void *)0)-
24 , 'q'},-
25 {"dry-run", -
26 0-
27 , -
28 ((void *)0)-
29 , 'u'},-
30 {"suffix", -
31 1-
32 , -
33 ((void *)0)-
34 , SUFFIX_OPTION},-
35 {"tmpdir", -
36 2-
37 , -
38 ((void *)0)-
39 , 'p'},-
40 {"help", -
41 0-
42 , -
43 ((void *)0)-
44 , GETOPT_HELP_CHAR},-
45 {"version", -
46 0-
47 , -
48 ((void *)0)-
49 , GETOPT_VERSION_CHAR},-
50 {-
51 ((void *)0)-
52 , 0, -
53 ((void *)0)-
54 , 0}-
55};-
56-
57void-
58usage (int status)-
59{-
60 if (status !=
status != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 13 times by 1 test
Evaluated by:
  • mktemp
5-13
61 0
status != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 13 times by 1 test
Evaluated by:
  • mktemp
5-13
62 )-
63 do { fprintf (-
64 stderr-
65 , -
66 dcgettext (((void *)0), -
67 "Try '%s --help' for more information.\n"-
68 , 5)-
69 , program_name); }
executed 5 times by 1 test: end of block
Executed by:
  • mktemp
while (0);
5
70 else-
71 {-
72 printf (-
73 dcgettext (((void *)0), -
74 "Usage: %s [OPTION]... [TEMPLATE]\n"-
75 , 5)-
76 , program_name);-
77 fputs_unlocked (-
78 dcgettext (((void *)0), -
79 "Create a temporary file or directory, safely, and print its name.\nTEMPLATE must contain at least 3 consecutive 'X's in last component.\nIf TEMPLATE is not specified, use tmp.XXXXXXXXXX, and --tmpdir is implied.\n"-
80 , 5)-
81 ,-
82 stdout-
83 )-
84-
85-
86-
87 ;-
88 fputs_unlocked (-
89 dcgettext (((void *)0), -
90 "Files are created u+rw, and directories u+rwx, minus umask restrictions.\n"-
91 , 5)-
92 ,-
93 stdout-
94 )-
95-
96 ;-
97 fputs_unlocked ("\n",-
98 stdout-
99 );-
100 fputs_unlocked (-
101 dcgettext (((void *)0), -
102 " -d, --directory create a directory, not a file\n -u, --dry-run do not create anything; merely print a name (unsafe)\n -q, --quiet suppress diagnostics about file/dir-creation failure\n"-
103 , 5)-
104 ,-
105 stdout-
106 )-
107-
108-
109-
110 ;-
111 fputs_unlocked (-
112 dcgettext (((void *)0), -
113 " --suffix=SUFF append SUFF to TEMPLATE; SUFF must not contain a slash.\n This option is implied if TEMPLATE does not end in X\n"-
114 , 5)-
115 ,-
116 stdout-
117 )-
118-
119-
120 ;-
121 fputs_unlocked (-
122 dcgettext (((void *)0), -
123 " -p DIR, --tmpdir[=DIR] interpret TEMPLATE relative to DIR; if DIR is not\n specified, use $TMPDIR if set, else /tmp. With\n this option, TEMPLATE must not be an absolute name;\n unlike with -t, TEMPLATE may contain slashes, but\n mktemp creates only the final component\n"-
124 , 5)-
125 ,-
126 stdout-
127 )-
128-
129-
130-
131-
132-
133 ;-
134 fputs_unlocked (-
135 dcgettext (((void *)0), -
136 " -t interpret TEMPLATE as a single file name component,\n relative to a directory: $TMPDIR, if set; else the\n directory specified via -p; else /tmp [deprecated]\n"-
137 , 5)-
138 ,-
139 stdout-
140 )-
141-
142-
143-
144 ;-
145 fputs_unlocked (-
146 dcgettext (((void *)0), -
147 " --help display this help and exit\n"-
148 , 5)-
149 ,-
150 stdout-
151 );-
152 fputs_unlocked (-
153 dcgettext (((void *)0), -
154 " --version output version information and exit\n"-
155 , 5)-
156 ,-
157 stdout-
158 );-
159 emit_ancillary_info ("mktemp");-
160 }
executed 13 times by 1 test: end of block
Executed by:
  • mktemp
13
161-
162 exit (status);
executed 18 times by 1 test: exit (status);
Executed by:
  • mktemp
18
163}-
164-
165static size_t-
166count_consecutive_X_s (const char *s, size_t len)-
167{-
168 size_t n = 0;-
169 for ( ; len
lenDescription
TRUEevaluated 2874 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
&& s[len-1] == 'X'
s[len-1] == 'X'Description
TRUEevaluated 2304 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 570 times by 1 test
Evaluated by:
  • mktemp
; len--)
1-2874
170 ++
executed 2304 times by 1 test: ++n;
Executed by:
  • mktemp
n;
executed 2304 times by 1 test: ++n;
Executed by:
  • mktemp
2304
171 return
executed 571 times by 1 test: return n;
Executed by:
  • mktemp
n;
executed 571 times by 1 test: return n;
Executed by:
  • mktemp
571
172}-
173-
174static int-
175mkstemp_len (char *tmpl, size_t suff_len, size_t x_len, -
176 _Bool -
177 dry_run)-
178{-
179 return
executed 16 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0, x_len);
Executed by:
  • mktemp
gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0,
executed 16 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0, x_len);
Executed by:
  • mktemp
16
180 x_len);
executed 16 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 0, x_len);
Executed by:
  • mktemp
16
181}-
182-
183static int-
184mkdtemp_len (char *tmpl, size_t suff_len, size_t x_len, -
185 _Bool -
186 dry_run)-
187{-
188 return
executed 550 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1, x_len);
Executed by:
  • mktemp
gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1,
executed 550 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1, x_len);
Executed by:
  • mktemp
550
189 x_len);
executed 550 times by 1 test: return gen_tempname_len (tmpl, suff_len, 0, dry_run ? 2 : 1, x_len);
Executed by:
  • mktemp
550
190}-
191-
192-
193static -
194 _Bool -
195 stdout_closed;-
196-
197-
198-
199-
200-
201static void-
202maybe_close_stdout (void)-
203{-
204 if (!stdout_closed
!stdout_closedDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 561 times by 1 test
Evaluated by:
  • mktemp
)
36-561
205 close_stdout ();
executed 36 times by 1 test: close_stdout ();
Executed by:
  • mktemp
36
206 else if (close_stream (
close_stream ( stderr ) != 0Description
TRUEnever evaluated
FALSEevaluated 561 times by 1 test
Evaluated by:
  • mktemp
0-561
207 stderr
close_stream ( stderr ) != 0Description
TRUEnever evaluated
FALSEevaluated 561 times by 1 test
Evaluated by:
  • mktemp
0-561
208 ) != 0
close_stream ( stderr ) != 0Description
TRUEnever evaluated
FALSEevaluated 561 times by 1 test
Evaluated by:
  • mktemp
)
0-561
209 _exit (
never executed: _exit ( 1 );
0
210 1
never executed: _exit ( 1 );
0
211 );
never executed: _exit ( 1 );
0
212}
executed 597 times by 1 test: end of block
Executed by:
  • mktemp
597
213-
214int-
215main (int argc, char **argv)-
216{-
217 char const *dest_dir;-
218 char const *dest_dir_arg = -
219 ((void *)0)-
220 ;-
221 -
222 _Bool -
223 suppress_file_err = -
224 0-
225 ;-
226 int c;-
227 unsigned int n_args;-
228 char *template;-
229 char *suffix = -
230 ((void *)0)-
231 ;-
232 -
233 _Bool -
234 use_dest_dir = -
235 0-
236 ;-
237 -
238 _Bool -
239 deprecated_t_option = -
240 0-
241 ;-
242 -
243 _Bool -
244 create_directory = -
245 0-
246 ;-
247 -
248 _Bool -
249 dry_run = -
250 0-
251 ;-
252 int status = -
253 0-
254 ;-
255 size_t x_count;-
256 size_t suffix_len;-
257 char *dest_name;-
258-
259 ;-
260 set_program_name (argv[0]);-
261 setlocale (-
262 6-
263 , "");-
264 bindtextdomain ("coreutils", "/usr/local/share/locale");-
265 textdomain ("coreutils");-
266-
267 atexit (maybe_close_stdout);-
268-
269 while ((
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 1688 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 577 times by 1 test
Evaluated by:
  • mktemp
c = getopt_long (argc, argv, "dp:qtuV", longopts,
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 1688 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 577 times by 1 test
Evaluated by:
  • mktemp
577-1688
270 ((void *)0)
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 1688 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 577 times by 1 test
Evaluated by:
  • mktemp
577-1688
271 )) != -1
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 1688 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 577 times by 1 test
Evaluated by:
  • mktemp
)
577-1688
272 {-
273 switch (c)-
274 {-
275 case
executed 554 times by 1 test: case 'd':
Executed by:
  • mktemp
'd':
executed 554 times by 1 test: case 'd':
Executed by:
  • mktemp
554
276 create_directory = -
277 1-
278 ;-
279 break;
executed 554 times by 1 test: break;
Executed by:
  • mktemp
554
280 case
executed 547 times by 1 test: case 'p':
Executed by:
  • mktemp
'p':
executed 547 times by 1 test: case 'p':
Executed by:
  • mktemp
547
281 dest_dir_arg = optarg;-
282 use_dest_dir = -
283 1-
284 ;-
285 break;
executed 547 times by 1 test: break;
Executed by:
  • mktemp
547
286 case
executed 6 times by 1 test: case 'q':
Executed by:
  • mktemp
'q':
executed 6 times by 1 test: case 'q':
Executed by:
  • mktemp
6
287 suppress_file_err = -
288 1-
289 ;-
290 break;
executed 6 times by 1 test: break;
Executed by:
  • mktemp
6
291 case
executed 545 times by 1 test: case 't':
Executed by:
  • mktemp
't':
executed 545 times by 1 test: case 't':
Executed by:
  • mktemp
545
292 use_dest_dir = -
293 1-
294 ;-
295 deprecated_t_option = -
296 1-
297 ;-
298 break;
executed 545 times by 1 test: break;
Executed by:
  • mktemp
545
299 case
executed 6 times by 1 test: case 'u':
Executed by:
  • mktemp
'u':
executed 6 times by 1 test: case 'u':
Executed by:
  • mktemp
6
300 dry_run = -
301 1-
302 ;-
303 break;
executed 6 times by 1 test: break;
Executed by:
  • mktemp
6
304-
305 case
executed 10 times by 1 test: case SUFFIX_OPTION:
Executed by:
  • mktemp
SUFFIX_OPTION:
executed 10 times by 1 test: case SUFFIX_OPTION:
Executed by:
  • mktemp
10
306 suffix = optarg;-
307 break;
executed 10 times by 1 test: break;
Executed by:
  • mktemp
10
308-
309 case
executed 13 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • mktemp
GETOPT_HELP_CHAR:
executed 13 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • mktemp
usage (
13
310 0-
311 ); break;
never executed: break;
;
0
312-
313 case
never executed: case 'V':
'V':
never executed: case 'V':
0
314-
315 case
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • mktemp
GETOPT_VERSION_CHAR:
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • mktemp
version_etc (
4
316 stdout-
317 , "mktemp", "GNU coreutils", Version, ("Jim Meyering"), ("Eric Blake"), (char *) -
318 ((void *)0)-
319 ); exit (
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • mktemp
4
320 0
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • mktemp
4
321 );
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • mktemp
break;
never executed: break;
;
0-4
322 default
executed 3 times by 1 test: default:
Executed by:
  • mktemp
:
executed 3 times by 1 test: default:
Executed by:
  • mktemp
3
323 usage (-
324 1-
325 );-
326 }
never executed: end of block
0
327 }-
328-
329 n_args = argc - optind;-
330 if (2 <= n_args
2 <= n_argsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 575 times by 1 test
Evaluated by:
  • mktemp
)
2-575
331 {-
332 error (0, 0, -
333 dcgettext (((void *)0), -
334 "too many templates"-
335 , 5)-
336 );-
337 usage (-
338 1-
339 );-
340 }
never executed: end of block
0
341-
342 if (n_args == 0
n_args == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 572 times by 1 test
Evaluated by:
  • mktemp
)
3-572
343 {-
344 use_dest_dir = -
345 1-
346 ;-
347 template = (char *) default_template;-
348 }
executed 3 times by 1 test: end of block
Executed by:
  • mktemp
3
349 else-
350 {-
351 template = argv[optind];-
352 }
executed 572 times by 1 test: end of block
Executed by:
  • mktemp
572
353-
354 if (suffix
suffixDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 566 times by 1 test
Evaluated by:
  • mktemp
)
9-566
355 {-
356 size_t len = strlen (template);-
357 if (!len
!lenDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 8 times by 1 test
Evaluated by:
  • mktemp
|| template[len - 1] != 'X'
template[len - 1] != 'X'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 7 times by 1 test
Evaluated by:
  • mktemp
)
1-8
358 {-
359 ((!!sizeof (struct { _Static_assert (-
360 1-
361 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"with --suffix, template %s must end in X\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
362 1-
363 , 0, -
364 dcgettext (((void *)0), -
365 "with --suffix, template %s must end in X"-
366 , 5)-
367 , quote (template)), ((-
368 0-
369 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
370 1-
371 , 0, -
372 dcgettext (((void *)0), -
373 "with --suffix, template %s must end in X"-
374 , 5)-
375 , quote (template)), ((-
376 0-
377 ) ? (void) 0 : __builtin_unreachable ()))))-
378-
379 ;-
380 }
never executed: end of block
0
381 suffix_len = strlen (suffix);-
382 dest_name = xcharalloc (len + suffix_len + 1);-
383 memcpy (dest_name, template, len);-
384 memcpy (dest_name + len, suffix, suffix_len + 1);-
385 template = dest_name;-
386 suffix = dest_name + len;-
387 }
executed 7 times by 1 test: end of block
Executed by:
  • mktemp
7
388 else-
389 {-
390 template = xstrdup (template);-
391 suffix = strrchr (template, 'X');-
392 if (!suffix
!suffixDescription
TRUEnever evaluated
FALSEevaluated 566 times by 1 test
Evaluated by:
  • mktemp
)
0-566
393 suffix =
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
394 (__extension__ (__builtin_constant_p (
__builtin_constant_p ( '\0' )Description
TRUEnever evaluated
FALSEnever evaluated
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
395 '\0'
__builtin_constant_p ( '\0' )Description
TRUEnever evaluated
FALSEnever evaluated
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
396 )
__builtin_constant_p ( '\0' )Description
TRUEnever evaluated
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_con...p ( template )Description
TRUEnever evaluated
FALSEnever evaluated
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
397 template
!__builtin_con...p ( template )Description
TRUEnever evaluated
FALSEnever evaluated
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
398 )
!__builtin_con...p ( template )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( '\0' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
399 '\0'
( '\0' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
400 ) == '\0'
( '\0' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
401 template
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
402 ,
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
403 '\0'
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
404 ) : __builtin_strchr (
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
405 template
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
406 ,
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
407 '\0'
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
408 )))
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
409 ;
never executed: suffix = (__extension__ (__builtin_constant_p ( '\0' ) && !__builtin_constant_p ( template ) && ( '\0' ) == '\0' ? (char *) __rawmemchr ( template , '\0' ) : __builtin_strchr ( template , '\0' ))) ;
0
410 else-
411 suffix++;
executed 566 times by 1 test: suffix++;
Executed by:
  • mktemp
566
412 suffix_len = strlen (suffix);-
413 }
executed 566 times by 1 test: end of block
Executed by:
  • mktemp
566
414-
415-
416 if (suffix_len
suffix_lenDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 561 times by 1 test
Evaluated by:
  • mktemp
&& last_component (suffix) != suffix
last_component...fix) != suffixDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 10 times by 1 test
Evaluated by:
  • mktemp
)
2-561
417 {-
418 ((!!sizeof (struct { _Static_assert (-
419 1-
420 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid suffix %s, contains directory separator\", 5), quote (suffix)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
421 1-
422 , 0, -
423 dcgettext (((void *)0), -
424 "invalid suffix %s, contains directory separator"-
425 , 5)-
426 , quote (suffix)), ((-
427 0-
428 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
429 1-
430 , 0, -
431 dcgettext (((void *)0), -
432 "invalid suffix %s, contains directory separator"-
433 , 5)-
434 , quote (suffix)), ((-
435 0-
436 ) ? (void) 0 : __builtin_unreachable ()))))-
437-
438 ;-
439 }
never executed: end of block
0
440 x_count = count_consecutive_X_s (template, suffix - template);-
441 if (x_count < 3
x_count < 3Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 568 times by 1 test
Evaluated by:
  • mktemp
)
3-568
442 ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
!!sizeof (struct { _Static_assert (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
443 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
444 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
445 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
446 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
447 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
448 "too few X's in template %s"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
449 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
450 , quote (template)), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
451 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
452 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
453 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
454 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
455 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
456 "too few X's in template %s"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
457 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
458 , quote (template)), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
459 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
460 ) ? (void) 0 : __builtin_unreachable ()))));
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too few X's in template %s\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too few X's in template %s" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • mktemp
3
461-
462 if (use_dest_dir
use_dest_dirDescription
TRUEevaluated 549 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 19 times by 1 test
Evaluated by:
  • mktemp
)
19-549
463 {-
464 if (deprecated_t_option
deprecated_t_optionDescription
TRUEevaluated 544 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 5 times by 1 test
Evaluated by:
  • mktemp
)
5-544
465 {-
466 char *env = getenv ("TMPDIR");-
467 if (env
envDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 543 times by 1 test
Evaluated by:
  • mktemp
&& *
*envDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
env
*envDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
)
0-543
468 dest_dir = env;
executed 1 time by 1 test: dest_dir = env;
Executed by:
  • mktemp
1
469 else if (dest_dir_arg
dest_dir_argDescription
TRUEevaluated 543 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
&& *
*dest_dir_argDescription
TRUEevaluated 543 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
dest_dir_arg
*dest_dir_argDescription
TRUEevaluated 543 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
)
0-543
470 dest_dir = dest_dir_arg;
executed 543 times by 1 test: dest_dir = dest_dir_arg;
Executed by:
  • mktemp
543
471 else-
472 dest_dir = "/tmp";
never executed: dest_dir = "/tmp";
0
473-
474 if (last_component (template) != template
last_component...e) != templateDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 543 times by 1 test
Evaluated by:
  • mktemp
)
1-543
475 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
476 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
477 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
478 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
479 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
480 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
481 "invalid template, %s, contains directory separator"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
482 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
483 , quote (template)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
484 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
485 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
486 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
487 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
488 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
489 "invalid template, %s, contains directory separator"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
490 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
491 , quote (template)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
492 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
493 ) ? (void) 0 : __builtin_unreachable ()))))
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
4941
495 ;
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s, contains directory separator\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext...parator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s, contains directory separator" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
496 }
executed 543 times by 1 test: end of block
Executed by:
  • mktemp
543
497 else-
498 {-
499 if (dest_dir_arg
dest_dir_argDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 3 times by 1 test
Evaluated by:
  • mktemp
&& *
*dest_dir_argDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
dest_dir_arg
*dest_dir_argDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
)
0-3
500 dest_dir = dest_dir_arg;
executed 2 times by 1 test: dest_dir = dest_dir_arg;
Executed by:
  • mktemp
2
501 else-
502 {-
503 char *env = getenv ("TMPDIR");-
504 dest_dir = (env
envDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
&& *
*envDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
env
*envDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
? env : "/tmp");
0-3
505 }
executed 3 times by 1 test: end of block
Executed by:
  • mktemp
3
506 if (((((
(((template)[0]) == '/')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
template)[0]) == '/')
(((template)[0]) == '/')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
|| 0 != 0
0 != 0Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
))
0-4
507 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
508 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
509 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
510 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
511 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
512 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
513 "invalid template, %s; with --tmpdir," " it may not be absolute"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
514 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
515 , quote (template)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
516 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
517 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
518 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
519 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
520 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
521 "invalid template, %s; with --tmpdir," " it may not be absolute"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
522 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
523 , quote (template)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
524 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
525 ) ? (void) 0 : __builtin_unreachable ()))))
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
5261
5271
528 ;
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid template, %s; with --tmpdir,\" \" it may not be absolute\", 5), quote (template)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 ...) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid template, %s; with --tmpdir," " it may not be absolute" , 5) , quote (template)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • mktemp
1
529 }
executed 4 times by 1 test: end of block
Executed by:
  • mktemp
4
530-
531 dest_name = file_name_concat (dest_dir, template, -
532 ((void *)0)-
533 );-
534 free (template);-
535 template = dest_name;-
536-
537 }
executed 547 times by 1 test: end of block
Executed by:
  • mktemp
547
538-
539-
540-
541 dest_name = xstrdup (template);-
542-
543 if (create_directory
create_directoryDescription
TRUEevaluated 550 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 16 times by 1 test
Evaluated by:
  • mktemp
)
16-550
544 {-
545 int err = mkdtemp_len (dest_name, suffix_len, x_count, dry_run);-
546 if (err != 0
err != 0Description
TRUEnever evaluated
FALSEevaluated 550 times by 1 test
Evaluated by:
  • mktemp
)
0-550
547 {-
548 if (!suppress_file_err
!suppress_file_errDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
549 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
550 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
551 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
552 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
553 "failed to create directory via template %s"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
554 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
555 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
556 quote (template));
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create directory via template %s" , 5) , quote (template));
0
557 status = -
558 1-
559 ;-
560 }
never executed: end of block
0
561 }
executed 550 times by 1 test: end of block
Executed by:
  • mktemp
550
562 else-
563 {-
564 int fd = mkstemp_len (dest_name, suffix_len, x_count, dry_run);-
565 if (fd < 0
fd < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 15 times by 1 test
Evaluated by:
  • mktemp
|| (!dry_run
!dry_runDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 3 times by 1 test
Evaluated by:
  • mktemp
&& close (fd) != 0
close (fd) != 0Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • mktemp
))
0-15
566 {-
567 if (!suppress_file_err
!suppress_file_errDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
FALSEnever evaluated
)
0-1
568 error (0,
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
569 (*__errno_location ())
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
570 ,
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
571 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
572 "failed to create file via template %s"
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
573 , 5)
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
574 ,
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
575 quote (template));
executed 1 time by 1 test: error (0, (*__errno_location ()) , dcgettext (((void *)0), "failed to create file via template %s" , 5) , quote (template));
Executed by:
  • mktemp
1
576 status = -
577 1-
578 ;-
579 }
executed 1 time by 1 test: end of block
Executed by:
  • mktemp
1
580 }
executed 16 times by 1 test: end of block
Executed by:
  • mktemp
16
581-
582 if (status ==
status == 0Description
TRUEevaluated 565 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
1-565
583 0
status == 0Description
TRUEevaluated 565 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 1 time by 1 test
Evaluated by:
  • mktemp
1-565
584 )-
585 {-
586 puts (dest_name);-
587-
588-
589 if (!dry_run
!dry_runDescription
TRUEevaluated 561 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
&& ((
((stdout_close...stdout ) != 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 557 times by 1 test
Evaluated by:
  • mktemp
stdout_closed =
((stdout_close...stdout ) != 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 557 times by 1 test
Evaluated by:
  • mktemp
4-561
590 1
((stdout_close...stdout ) != 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 557 times by 1 test
Evaluated by:
  • mktemp
4-557
591 ), close_stream (
((stdout_close...stdout ) != 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 557 times by 1 test
Evaluated by:
  • mktemp
4-557
592 stdout
((stdout_close...stdout ) != 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 557 times by 1 test
Evaluated by:
  • mktemp
4-557
593 ) != 0)
((stdout_close...stdout ) != 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 557 times by 1 test
Evaluated by:
  • mktemp
)
4-557
594 {-
595 int saved_errno = -
596 (*__errno_location ())-
597 ;-
598 remove (dest_name);-
599 if (!suppress_file_err
!suppress_file_errDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • mktemp
FALSEevaluated 2 times by 1 test
Evaluated by:
  • mktemp
)
2
600 error (0, saved_errno,
executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) );
Executed by:
  • mktemp
2
601 dcgettext (((void *)0),
executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) );
Executed by:
  • mktemp
2
602 "write error"
executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) );
Executed by:
  • mktemp
2
603 , 5)
executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) );
Executed by:
  • mktemp
2
604 );
executed 2 times by 1 test: error (0, saved_errno, dcgettext (((void *)0), "write error" , 5) );
Executed by:
  • mktemp
2
605 status = -
606 1-
607 ;-
608 }
executed 4 times by 1 test: end of block
Executed by:
  • mktemp
4
609 }
executed 565 times by 1 test: end of block
Executed by:
  • mktemp
565
610-
611-
612-
613-
614-
615-
616 return
executed 566 times by 1 test: return status;
Executed by:
  • mktemp
status;
executed 566 times by 1 test: return status;
Executed by:
  • mktemp
566
617}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2