mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 23:20:29 +03:00
Make std.file.deleteme @safe
This commit is contained in:
parent
1b4e815059
commit
ec500bb9eb
1 changed files with 2 additions and 2 deletions
|
@ -42,14 +42,14 @@ version (unittest)
|
||||||
{
|
{
|
||||||
import core.thread;
|
import core.thread;
|
||||||
|
|
||||||
private @property string deleteme()
|
private @property string deleteme() @safe
|
||||||
{
|
{
|
||||||
static _deleteme = "deleteme.dmd.unittest.pid";
|
static _deleteme = "deleteme.dmd.unittest.pid";
|
||||||
static _first = true;
|
static _first = true;
|
||||||
|
|
||||||
if(_first)
|
if(_first)
|
||||||
{
|
{
|
||||||
_deleteme = buildPath(tempDir(), _deleteme) ~ to!string(getpid());
|
_deleteme = buildPath(tempDir(), _deleteme) ~ to!string(thisProcessID);
|
||||||
_first = false;
|
_first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue