Bug 18752 – std.file.read runnable example fails

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-04-10T11:14:59Z
Last change time
2018-06-02T16:00:53Z
Assigned to
No Owner
Creator
Bastiaan Veelo

Comments

Comment #0 by Bastiaan — 2018-04-10T11:14:59Z
Pressing "Run" on https://dlang.org/library/std/file/read.html gives ``` [email protected](8): Assertion failure ---------------- ??:? _d_assertp [0x9dda8549] ??:? _Dmain [0x9dd9cd58] === Bypassed === std.file.FileException@std/file.d(351): /tmp/deleteme.dmd.unittest.pid24: No such file or directory ---------------- ??:? @safe bool std.file.cenforce!(bool).cenforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x9ddaeeb7] ??:? @trusted void[] std.file.readImpl(const(char)[], const(char)*, ulong) [0x9ddad5db] ??:? @safe void[] std.file.read!(immutable(char)[]).read(immutable(char)[], ulong) [0x9dd9e3ad] ??:? _Dmain [0x9dd9cccc] === ~Bypassed === /tmp/deleteme.dmd.unittest.pid241234 ``` Best regards, Bastiaan.
Comment #1 by greensunny12 — 2018-06-02T14:50:36Z
Comment #2 by github-bugzilla — 2018-06-02T16:00:52Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f9cd2af795f40c04f6b6e3b35a3b7296b4599f4c Fix Issue 18752 - std.file.read runnable example fails https://github.com/dlang/phobos/commit/f5ded6e00a6896873625660a7548d9cc6cbfbbd2 Merge pull request #6536 from wilzbach/fix-18752 Fix Issue 18752 - std.file.read runnable example fails merged-on-behalf-of: Vladimir Panteleev <[email protected]>