Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #3874 (closed defect: worksforme)

Opened 9 years ago

Last modified 8 years ago

gcovr doesn't produce coverage results on Windows

Reported by: eric.griffith@… Owned by: jdsiiro
Priority: normal Milestone:
Component: gcovr Version:
Keywords: Cc:


If I use gcovr on 32-bit Windows 7 with Python 2.7, g++ and gcov 4.5.0 with MinGW, then gcovr doesn't produce any coverage output. The problem seems to be with this line:
for line in out.split("\n"):

It seems like the extra "\r" in the resulting string on Windows breaks the regular expression. If I replace "\n" with os.linesep, then it works as expected.


Change History

comment:1 Changed 8 years ago by wehart

  • Status changed from new to closed
  • Resolution set to worksforme

I replaced the call out.split("\n") to out.split(os.linesep)

Hopefully, that will resolve this issue. Please resubmit a ticket if this does not work!


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.