public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Bernd Edlinger <edlinger@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-798] Cleanup temp files in libphobos unittest at src/std/process.d Date: Fri, 14 May 2021 12:22:43 +0000 (GMT) [thread overview] Message-ID: <20210514122243.67F61386FC00@sourceware.org> (raw) https://gcc.gnu.org/g:cb787efa45782adab764575a2efc356e082828b6 commit r12-798-gcb787efa45782adab764575a2efc356e082828b6 Author: Bernd Edlinger <bernd.edlinger@hotmail.de> Date: Fri May 14 07:10:59 2021 +0200 Cleanup temp files in libphobos unittest at src/std/process.d 2021-05-14 Bernd Edlinger <bernd.edlinger@hotmail.de> * src/std/process.d (unittest): Remove tmpname on exit. * src/MERGE: Merge upstream phobos 63f4caa90. Diff: --- libphobos/src/MERGE | 2 +- libphobos/src/std/process.d | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libphobos/src/MERGE b/libphobos/src/MERGE index 49622c5c548..ac709f9c807 100644 --- a/libphobos/src/MERGE +++ b/libphobos/src/MERGE @@ -1,4 +1,4 @@ -32cfe9b61570d52d9885b0208fd20de0d351b51e +63f4caa900e17c541042617b2fa187059b86bf88 The first line of this file holds the git revision number of the last merge done from the dlang/phobos repository. diff --git a/libphobos/src/std/process.d b/libphobos/src/std/process.d index 63ec49365b9..1e977aa34f5 100644 --- a/libphobos/src/std/process.d +++ b/libphobos/src/std/process.d @@ -2581,6 +2581,7 @@ private auto executeImpl(alias pipeFunc, Cmd, ExtraPipeFuncArgs...)( ReturnType!executeShell r; auto tmpname = uniqueTempPath; + scope(exit) if (exists(tmpname)) remove(tmpname); auto t = stderr; // Open a new scope to minimize code ran with stderr redirected. {
reply other threads:[~2021-05-14 12:22 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210514122243.67F61386FC00@sourceware.org \ --to=edlinger@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).