D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16952 - REG: rdmd --eval='writeln();' keeps failing at almost every release, needs a test
Summary: REG: rdmd --eval='writeln();' keeps failing at almost every release, needs a ...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: x86 All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-06 23:03 UTC by Timothee Cour
Modified: 2017-12-24 22:28 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Timothee Cour 2016-12-06 23:03:40 UTC
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 ag0aep6g 2016-12-06 23:19:30 UTC
(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 Timothee Cour 2016-12-07 00:11:43 UTC
filed https://issues.dlang.org/show_bug.cgi?id=16953: auto-tester doesn't run rdmd_test (causes a number of regressions in each release)
Comment 3 Seb 2017-12-24 22:28:06 UTC
TravisCI now runs the testsuite on every day.