mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
Dscanner: let unittest be @safe or @system
This commit is contained in:
commit
30724e67d9
89 changed files with 839 additions and 839 deletions
|
@ -1479,7 +1479,7 @@ class ErrnoException : Exception
|
|||
super(msg ~ " (" ~ s[0 .. s.strlen].idup ~ ")", file, line);
|
||||
}
|
||||
|
||||
unittest
|
||||
@system unittest
|
||||
{
|
||||
import core.stdc.errno : errno, EAGAIN;
|
||||
|
||||
|
@ -1491,7 +1491,7 @@ class ErrnoException : Exception
|
|||
assert(ex.errno == EAGAIN);
|
||||
}
|
||||
|
||||
unittest
|
||||
@system unittest
|
||||
{
|
||||
import core.stdc.errno : EAGAIN;
|
||||
auto ex = new ErrnoException("oh no", EAGAIN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue