Bug #45530 For code coverage (GCOV) ATRT and CPCD should do a "nice" shutdown
Submitted: 16 Jun 2009 13:56 Modified: 7 Apr 2014 13:08
Reporter: Jonathan Miller Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S4 (Feature request)
Version:mysql-5.1-telco-7.0 OS:Any
Assigned to: Magnus BlÄudd CPU Architecture:Any

[16 Jun 2009 13:56] Jonathan Miller
Description:
Currently ATRT/CPCD uses "kill" to shutdown the cluster during testing even if the test passes.

The does no allow gcov to write out coverage data.

Therefore, you can not get accurate code coverage from the API Testing. 

How to repeat:
run ATRT test using a gcov build. The "blocks" will not record any data for gcov.

Suggested fix:
ATRT/CPCD should use a "nice" shutdown for the cluster. If the processes do not exit within a given amount of time, then it should revert back to a "kill"