From 290f76a62352e741acd5888574cb30831c39da5d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 29 Jul 2008 09:16:53 +0000 Subject: Added a reset method to SharedPtr, which allows NULLifying it. svn-id: r33400 --- test/common/ptr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/common') diff --git a/test/common/ptr.h b/test/common/ptr.h index 11ed52d4b9..986330057c 100644 --- a/test/common/ptr.h +++ b/test/common/ptr.h @@ -61,6 +61,9 @@ class PtrTestSuite : public CxxTest::TestSuite TS_ASSERT(p1 != 0); TS_ASSERT(p2 == 0); + + p1.reset(); + TS_ASSERT(!p1); } struct A { -- cgit v1.2.3