History log of /gem5/src/unittest/refcnttest.cc
Revision Date Author Comments
# 7842:4c0f7929ee33 18-Jan-2011 Gabe Black <gblack@eecs.umich.edu>

Unit tests: Convert the refcnttest unit test to use the new EXPECT macros.


# 7824:b36af60dcb91 10-Jan-2011 Gabe Black <gblack@eecs.umich.edu>

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.