Cleanup temp files in libphobos unittest at src/std/process.d

This commit is contained in:
Bernd Edlinger 2021-05-14 07:10:59 +02:00 committed by The Dlang Bot
parent 32cfe9b615
commit 63f4caa900

View file

@ -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.
{