Skip to content

Commit

Permalink
Merge pull request #6672 from kinke/stdException
Browse files Browse the repository at this point in the history
[stable] std.exception: Make unittest less brittle
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
  • Loading branch information
dlang-bot committed Aug 19, 2018
2 parents 8231e77 + 70ee500 commit 3aeec9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/exception.d
Expand Up @@ -629,7 +629,7 @@ alias errnoEnforce = enforce!ErrnoException;
@system unittest
{
import core.stdc.stdio : fclose, fgets, fopen;
auto f = fopen(__FILE__, "r").errnoEnforce;
auto f = fopen(__FILE_FULL_PATH__, "r").errnoEnforce;
scope(exit) fclose(f);
char[100] buf;
auto line = fgets(buf.ptr, buf.length, f);
Expand Down

0 comments on commit 3aeec9b

Please sign in to comment.