BIND 10 #2467: Remove raw pointers from DHCP test code
BIND 10 Development
do-not-reply at isc.org
Tue Nov 6 18:35:30 UTC 2012
#2467: Remove raw pointers from DHCP test code
--------------------------------+-----------------------------------------
Reporter: stephen | Owner:
Type: defect | Status: new
Priority: low | Milestone: DHCP 2012
Component: dhcp | Keywords:
Sensitive: 0 | Defect Severity: Low
Sub-Project: DHCP | Feature Depending on Ticket:
Estimated Difficulty: 0 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
--------------------------------+-----------------------------------------
A lot of DHCP test code relies on allocating objects on the heap and
storing the address in a raw pointer, then using delete at the end of the
test to destroy it. Occasionally the delete is missed and the valgrind
pass fails.
Unless there is a compelling reason otherwise, objects allocated during
tests should be pointed to by a smart pointer. This ticket is for a
refactoring of the existing tests to do this.
--
Ticket URL: <http://bind10.isc.org/ticket/2467>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list