summaryrefslogtreecommitdiff
path: root/src/unittest/SConscript
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-01-10 03:56:42 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-01-10 03:56:42 -0800
commitdc64732dee916535b555cbddf4c7590c14e72b9e (patch)
tree09c3b2b442d9205392c477e785409bdfe37de4be /src/unittest/SConscript
parent6f1187943cf78c2fd0334bd7e4372ae79a587fa4 (diff)
downloadgem5-dc64732dee916535b555cbddf4c7590c14e72b9e.tar.xz
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.
Diffstat (limited to 'src/unittest/SConscript')
-rw-r--r--src/unittest/SConscript1
1 files changed, 1 insertions, 0 deletions
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')