Temporary file creation for unittests
Joakim
dlang at joakim.fea.st
Mon May 21 03:02:14 UTC 2018
On Friday, 18 May 2018 at 15:16:52 UTC, Russel Winder wrote:
> Hi,
>
> What's the current official position on how to create temporary
> files for use during a unittest. I found
>
> https://github.com/dlang/phobos/pull/5788
>
> but it seems to be languishing in the "we have discussed all
> the issues that no-one will ever have a problem with" phase.
>
> What to do between now and when there is an LDC release that
> has the result of
> the merge?
You could use std.file.deleteme, which is what the Phobos
unittests use:
https://github.com/dlang/phobos/blob/master/std/file.d#L117
More information about the Digitalmars-d-learn
mailing list