Skip to content

Commit

Permalink
Merge pull request #2379 from tom-tan/safe-unittest-for-file-read
Browse files Browse the repository at this point in the history
Mark a unittest for std.file.read as safe
  • Loading branch information
Михаил Страшун committed Jul 28, 2014
2 parents 9b2dea2 + b4fef5d commit 533e345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/file.d
Expand Up @@ -309,7 +309,7 @@ void[] read(in char[] name, size_t upTo = size_t.max) @safe
}
}

unittest
@safe unittest
{
write(deleteme, "1234");
scope(exit) { assert(exists(deleteme)); remove(deleteme); }
Expand Down

0 comments on commit 533e345

Please sign in to comment.