View mode: basic / threaded / horizontal-split · Log in · Help
November 19, 2008
code coverage under Linux
Hello,
I'm looking for testing the code coverage fonctionnality with dmd under Ubuntu but it seems no to work.
The command :

$ dmd sieve -cov
$ sieve

Doesn't create a sieve.lst file... why ?

Thanks

Amaury
November 20, 2008
Re: code coverage under Linux
Amaury wrote:
> Hello,
> I'm looking for testing the code coverage fonctionnality with dmd under Ubuntu but it seems no to work.
> The command :
> 
> $ dmd sieve -cov
> $ sieve
> 
> Doesn't create a sieve.lst file... why ?
> 

try:
dmd -cov sieve.d
./sieve

Works for me.

O.
November 20, 2008
Re: code coverage under Linux
Hi,
I have already tried this and it doesn't work, I also tried with a sudo command... Do I need something else than just dmd ?
Amaury

Olli Aalto Wrote:

> Amaury wrote:
> > Hello,
> > I'm looking for testing the code coverage fonctionnality with dmd under Ubuntu but it seems no to work.
> > The command :
> > 
> > $ dmd sieve -cov
> > $ sieve
> > 
> > Doesn't create a sieve.lst file... why ?
> > 
> 
> try:
> dmd -cov sieve.d
> ./sieve
> 
> Works for me.
> 
> O.
November 21, 2008
Re: code coverage under Linux
Amaury wrote:
> Hi, I have already tried this and it doesn't work, I also tried with
> a sudo command... Do I need something else than just dmd ? Amaury

No, you shouldn't need anything other than dmd.
November 24, 2008
Re: code coverage under Linux
Amaury wrote:
> Doesn't create a sieve.lst file... why ?

Looks like the problem is in libdruntime.a. It'll be fixed in the next 
update.
November 24, 2008
Re: code coverage under Linux
Walter Bright Wrote:

> Amaury wrote:
> > Doesn't create a sieve.lst file... why ?
> 
> Looks like the problem is in libdruntime.a. It'll be fixed in the next 
> update.

It would be great and useful.
Thanks
Amaury
November 25, 2008
Re: code coverage under Linux
== Quote from Walter Bright (newshound1@digitalmars.com)'s article
> Amaury wrote:
> > Doesn't create a sieve.lst file... why ?
> Looks like the problem is in libdruntime.a. It'll be fixed in the next
> update.

I believe I've fixed this in the druntime svn trunk (still have to merge the
changes to the D 1.0 branch).


Sean
Top | Discussion index | About this forum | D home