Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 27, 2013 Re: Strange dmd -cov bug | ||||
---|---|---|---|---|
| ||||
On Wed, Nov 27, 2013 at 07:23:26AM -0800, H. S. Teoh wrote: > I'm seeing a very strange bug with dmd -cov. I started using -cov yesterday and looking at the .lst files in order to improve unittest coverage in my code, and then I found a block of code that displayed 000000 in the .lst file, yet there's a unittest that directly triggers it! > > In order to prove that the code actually ran, I added writeln's in that block of code as well as the accompanying unittest, and sure enough, it *did* run, and it did so within that unittest. However, the .lst file still shows up with 000000. > > The odd thing is, this only happens when I build the full program; when I tried isolating that particular module from the rest of the program, the problem went away. [...] Finally, I managed to isolate the problem and reduce the code. It turns out that it has to do with the combination of separate compilation and template functions being invoked from two different modules: https://d.puremagic.com/issues/show_bug.cgi?id=11619 This is pretty bad, as it makes -cov coverage numbers unreliable. :-( T -- To provoke is to call someone stupid; to argue is to call each other stupid. |
November 27, 2013 Re: Strange dmd -cov bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to H. S. Teoh | The coverage is quite broken. The paths are broken (http://d.puremagic.com/issues/show_bug.cgi?id=11214), and I found a bug where if you activate the merge flag (in cover.d) it will incorrectly sum the coverages from the previous run. I had a fix for that, but it seems my stash of it got lost. When I find the time I'll recreate it and do a pull request (I just submitted 3 bug reports, it takes time to reduce the test cases, etc.) |
November 27, 2013 Re: Strange dmd -cov bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to H. S. Teoh | Can someone please elucidate me about what causes the forum threads to break? I responded in this thread and now it says I am the thread starter, and H. S. Teoh's reply to himself broke the thread into two. I haven't checked if the NNTP interface shows the threads as broken into two, or if it is just the web interface. |
November 28, 2013 Re: Strange dmd -cov bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luís Marques | On Thu, Nov 28, 2013 at 12:45:45AM +0100, digitalmars-d-bounces@puremagic.com wrote: > Can someone please elucidate me about what causes the forum threads to break? I responded in this thread and now it says I am the thread starter, and H. S. Teoh's reply to himself broke the thread into two. I haven't checked if the NNTP interface shows the threads as broken into two, or if it is just the web interface. The problem is caused by a bug (or misbehaviour) in Mailman, which acts as a gateway to the NNTP server, that rewrites message IDs when it shouldn't. It's not something we can fix until the Mailman devs fix it upstream. Or so I've been told. T -- "I suspect the best way to deal with procrastination is to put off the procrastination itself until later. I've been meaning to try this, but haven't gotten around to it yet. " -- swr |
Copyright © 1999-2021 by the D Language Foundation