Skip to content

Commit

Permalink
Mark a unittest for std.file.read as safe
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-tan committed Jul 28, 2014
1 parent 9b2dea2 commit b4fef5d
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 b4fef5d

Please sign in to comment.