[Issue 4153] Code coverage output improvement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 8 13:39:02 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4153


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kennytm at gmail.com
          Component|DMD                         |druntime


--- Comment #2 from kennytm at gmail.com 2011-06-08 13:34:26 PDT ---
The coverage output is a druntime issue (and phobos for 1.x). For example, to
display '=======' instead of '0000000', you apply this patch:


diff --git a/src/rt/cover.d b/src/rt/cover.d
index 2ed5696..c72ee2f 100644
--- a/src/rt/cover.d
+++ b/src/rt/cover.d
@@ -184,7 +184,7 @@ shared static ~this()
                     if( c.valid[i] )
                     {
                         nno++;
-                        fprintf( flst, "0000000|%.*s\n", line.length, line.ptr
);
+                        fprintf( flst, "=======|%.*s\n", line.length, line.ptr
);
                     }
                     else
                     {

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list