aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2021-05-14 07:10:59 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2021-05-14 14:21:36 +0200
commitcb787efa45782adab764575a2efc356e082828b6 (patch)
tree84df31b83d2882fd32290127bacc7b8787431024 /libphobos/src/std
parentf05627d404038368b99e92ac4df4c29f4ae4a5fa (diff)
downloadgcc-cb787efa45782adab764575a2efc356e082828b6.zip
gcc-cb787efa45782adab764575a2efc356e082828b6.tar.gz
gcc-cb787efa45782adab764575a2efc356e082828b6.tar.bz2
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.
Diffstat (limited to 'libphobos/src/std')
-rw-r--r--libphobos/src/std/process.d1
1 files changed, 1 insertions, 0 deletions
diff --git a/libphobos/src/std/process.d b/libphobos/src/std/process.d
index 63ec493..1e977aa 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.
{