public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] support: Explain ignored failures of temporary file removal [BZ #21243]
@ 2017-03-14 14:36 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2017-03-14 14:36 UTC (permalink / raw)
  To: libc-alpha

2017-03-14  Florian Weimer  <fweimer@redhat.com>

	[BZ #21243]
	* support/temp_file.c (support_delete_temp_files): Add comment
	about ignored errors.

diff --git a/support/temp_file.c b/support/temp_file.c
index f06647a..5950aec 100644
--- a/support/temp_file.c
+++ b/support/temp_file.c
@@ -99,7 +99,10 @@ support_delete_temp_files (void)
 {
   while (temp_name_list != NULL)
     {
-      remove (temp_name_list->name);
+      /* For some tests, the temporary file removal runs multiple
+	 times (in the parent processes and the subprocess), so do not
+	 report a failed removal attempt.  */
+      (void) remove (temp_name_list->name);
       free (temp_name_list->name);
 
       struct temp_name_list *next

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-14 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-14 14:36 [PATCH] support: Explain ignored failures of temporary file removal [BZ #21243] Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).