From dc64732dee916535b555cbddf4c7590c14e72b9e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 10 Jan 2011 03:56:42 -0800 Subject: RefCount: Add a unit test for reference counting pointers. This test exercises each of the functions in the reference counting pointer implementation individually (except get()) and verifies they have some minimially expected behavior. It also checks that reference counted objects are freed when their usage count goes to 0 in some basic situations, specifically a pointer being set to NULL and a pointer being deleted. --- src/unittest/SConscript | 1 + 1 file changed, 1 insertion(+) (limited to 'src/unittest/SConscript') diff --git a/src/unittest/SConscript b/src/unittest/SConscript index 91ead522f..e7e2a6013 100644 --- a/src/unittest/SConscript +++ b/src/unittest/SConscript @@ -44,6 +44,7 @@ UnitTest('offtest', 'offtest.cc') UnitTest('rangetest', 'rangetest.cc') UnitTest('rangemaptest', 'rangemaptest.cc') UnitTest('rangemultimaptest', 'rangemultimaptest.cc') +UnitTest('refcnttest', 'refcnttest.cc') UnitTest('stattest', 'stattest.cc') UnitTest('strnumtest', 'strnumtest.cc') UnitTest('symtest', 'symtest.cc') -- cgit v1.2.3