Bug 16952 – REG: rdmd --eval='writeln();' keeps failing at almost every release, needs a test
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
tools
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2016-12-06T23:03:40Z
Last change time
2017-12-24T22:28:06Z
Assigned to
No Owner
Creator
Timothee Cour
Comments
Comment #0 by timothee.cour2 — 2016-12-06T23:03:40Z
it seems to break at every release, probably a symptom there's a test missing:
dmd --version
DMD64 D Compiler v2.072.1
rdmd '--eval=writeln();'
Error: module cstream is in file 'std/cstream.d' which cannot be read
dmd --version
DMD64 D Compiler v2.071.2
rdmd '--eval=writeln();'
Error: module syserror is in file 'std/syserror.d' which cannot be read
and also earlier versions:
https://issues.dlang.org/show_bug.cgi?id=15175 rdmd --loop and --eval now complain about std.stream deprecation warnings
https://issues.dlang.org/show_bug.cgi?id=13288 rdmd --eval fails because it still imports std.metastrings
https://issues.dlang.org/show_bug.cgi?id=10352 Regression (2.063): --eval is broken in RDMD
Comment #1 by ag0aep6g — 2016-12-06T23:19:30Z
(In reply to Timothee Cour from comment #0)
> it seems to break at every release, probably a symptom there's a test
> missing:
>
> dmd --version
> DMD64 D Compiler v2.072.1
> rdmd '--eval=writeln();'
> Error: module cstream is in file 'std/cstream.d' which cannot be read
So that people don't go and try to fix this: This specific instance has already been fixed in master.
Regarding the issue that this stuff comes up again and again: We do have a test in rdmd_test.d [1], and it does catch this. I think the problem is that the auto-tester doesn't run rdmd_test.
[1] https://github.com/dlang/tools/blob/3a32331303e2e62f429b8136ba0de0e9a9294722/rdmd_test.d#L135-L138
Comment #2 by timothee.cour2 — 2016-12-07T00:11:43Z