mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Fix partially Issue 11809 - unit tests leave behind temporary files
This commit is contained in:
parent
2fa2e6b4ab
commit
3271984e52
1 changed files with 1 additions and 0 deletions
|
@ -2318,6 +2318,7 @@ the contents may well have changed).
|
|||
static import std.file;
|
||||
auto deleteme = testFilename();
|
||||
std.file.write(deleteme, "Line 1\nLine 2\nLine 3\n");
|
||||
scope(success) std.file.remove(deleteme);
|
||||
|
||||
auto f = File(deleteme);
|
||||
f.byLine();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue