Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2008-03-21 17:12:22


Author: fmhess
Date: 2008-03-21 17:12:21 EDT (Fri, 21 Mar 2008)
New Revision: 43782
URL: http://svn.boost.org/trac/boost/changeset/43782

Log:
Fixed bogus test failure caused by new enable_shared_from_this features.

Text files modified:
   trunk/libs/smart_ptr/test/shared_from_this_test.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/smart_ptr/test/shared_from_this_test.cpp
==============================================================================
--- trunk/libs/smart_ptr/test/shared_from_this_test.cpp (original)
+++ trunk/libs/smart_ptr/test/shared_from_this_test.cpp 2008-03-21 17:12:21 EDT (Fri, 21 Mar 2008)
@@ -133,7 +133,8 @@
     try
     {
         boost::shared_ptr<V> r = v2.shared_from_this();
- BOOST_ERROR("v2.shared_from_this() failed to throw");
+ BOOST_TEST( p < r || r < p );
+ BOOST_TEST( r.get() == &v2 );
     }
     catch(boost::bad_weak_ptr const &)
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk