Bug 506278 - eclipse openmp gconv code coverage line marks and counter wrong on line breaks
Summary: eclipse openmp gconv code coverage line marks and counter wrong on line breaks
Status: NEW
Alias: None
Product: PTP
Classification: Tools
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-20 08:55 EDT by Pavel Petrov CLA
Modified: 2016-10-20 09:01 EDT (History)
0 users

See Also:


Attachments
screenshot (65.44 KB, image/png)
2016-10-20 08:59 EDT, Pavel Petrov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Petrov CLA 2016-10-20 08:55:29 EDT
gcov in-file marks for line usage is bogus if lines have breaks to new line. each new line break gives +1 error for line usage report


-- Configuration Details --
Product: Eclipse 4.6.1.20161007-1200 (org.eclipse.epp.package.parallel.product)
Installed Features:
 org.eclipse.platform 4.6.1.v20160907-1200
Comment 1 Pavel Petrov CLA 2016-10-20 08:59:23 EDT
Created attachment 264958 [details]
screenshot

show screen
Comment 2 Pavel Petrov CLA 2016-10-20 09:01:53 EDT
this missleading is going on for lines like

elapsedTime = (timeVectorInitEnd.tv_sec - timeVectorInitStart.tv_sec)
		* 1000.0;      // sec to ms

with operation (*1000.0) breaked on new line

for example this one was not counted as two times executed
(breaked part is whited not green at all -- see at screenshot attached)

printf("\nInit of two arrays of vector float[%d]: %.2f ms\n",
	FLOAT_ARRAY_SIZE, elapsedTime);