[dmd-internals] test failures

Don Clugston dclugston at googlemail.com
Tue May 24 00:18:19 PDT 2011


Works now, thanks! That has helped enormously in getting a reduced
test case. Bug 6049. Fix is in my open CTFE pull request.
Still took about six times as long to reduce the test case, as it did
to fix the bug. Would have been about ten times as long, without this
tool.


On 22 May 2011 12:45, Rainer Schuetze <r.sagitario at gmx.de> wrote:
> On 22.05.2011 03:04, Don Clugston wrote:
>>
>> On 20 May 2011 16:48, Rainer Schuetze<r.sagitario at gmx.de>  wrote:
>>>
>>> On 20.05.2011 16:32, Andrei Alexandrescu wrote:
>>>>
>>>> On 5/20/11 2:16 AM, Don Clugston wrote:
>>>>>
>>>>> Apart from the size, a particular problem with std.datetime is that it
>>>>> has unittests _inside_ struct declarations.
>>>>> This makes the code practically unreadable, especially since those
>>>>> unittests are enormous, and it makes bisection a very painful, manual
>>>>> process. 30K lines with only a few blocks of unittests wouldn't be a
>>>>> problem.
>>>>
>>>> Just a thought - how about a tool (that would go in the same dir as dmd
>>>> and rdmd) called strip_unittest? It would read a D program and output to
>>>> stdout the same program without unittests.
>>>>
>>>> All we need is a D tokenizer (which we need anyway) and a small driver.
>>>>
>>> Visual D has a "token replacer" that allows to do this:
>>> http://www.dsource.org/projects/visuald/wiki/Tour/TokenReplace
>>>
>>> replacing "unittest { $anything }" with "unittest { }" (to not get into
>>> troubles with version conditionals before the unittest statement) reduces
>>> the size of datetime.d to about a third of its original size.
>>>
>>> Rainer
>>
>> This looks like exactly what I want. Unfortunately when I select that
>> menu item, I just get a gray box. Presumably something's gone wrong in
>> the installation (I just upgraded from a few versions back; VS shell
>> 2008). Any ideas?
>
> I've seen this, too. It seems to be some update issue when you open the
> dialog for the first time. Resizing the window makes the controls appear.
>
>
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>


More information about the dmd-internals mailing list