X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=tests%2Ftest-hdr%2Fordered_list%2Fhdr_lazy.h;h=360b43c17d0ba82f70aee35c7b252f6d8244e5f2;hb=5164ba5bd61a581d54cea6a6bfab51407757b1b3;hp=fef2592b94680fc30989d35a1e896a88403ce44b;hpb=f20ee4054966a5a1af3b90440248557d04c5481f;p=libcds.git diff --git a/tests/test-hdr/ordered_list/hdr_lazy.h b/tests/test-hdr/ordered_list/hdr_lazy.h index fef2592b..360b43c1 100644 --- a/tests/test-hdr/ordered_list/hdr_lazy.h +++ b/tests/test-hdr/ordered_list/hdr_lazy.h @@ -560,7 +560,8 @@ namespace ordlist { CPPUNIT_CHECK( pGet->nKey == a[i] ); CPPUNIT_CHECK( pGet->nVal == a[i] * 2 ); - CPPUNIT_ASSERT( l.extract( ep, a[i] )); + ep = l.extract( a[i] ); + CPPUNIT_ASSERT( ep ); CPPUNIT_ASSERT( !ep.empty() ); CPPUNIT_CHECK( ep->nKey == a[i] ); CPPUNIT_CHECK( (*ep).nVal == a[i] * 2 ); @@ -569,8 +570,7 @@ namespace ordlist { { rcu_lock lock; CPPUNIT_CHECK( l.get( a[i] ) == nullptr ); - CPPUNIT_CHECK( !l.extract( ep, a[i] )); - CPPUNIT_CHECK( ep.empty() ); + CPPUNIT_CHECK( !l.extract( a[i] )); } } CPPUNIT_ASSERT( l.empty() ); @@ -578,7 +578,8 @@ namespace ordlist { { rcu_lock lock; CPPUNIT_CHECK( l.get( a[0] ) == nullptr ); - CPPUNIT_CHECK( !l.extract( ep, a[0] ) ); + ep = l.extract( a[0] ); + CPPUNIT_CHECK( !ep ); CPPUNIT_CHECK( ep.empty() ); } @@ -596,7 +597,8 @@ namespace ordlist { CPPUNIT_CHECK( pGet->nKey == a[i] ); CPPUNIT_CHECK( pGet->nVal == a[i] * 2 ); - CPPUNIT_ASSERT( l.extract_with( ep, itm, other_less() )); + ep = l.extract_with( itm, other_less() ); + CPPUNIT_ASSERT( ep ); CPPUNIT_ASSERT( !ep.empty() ); CPPUNIT_CHECK( ep->nKey == a[i] ); CPPUNIT_CHECK( ep->nVal == a[i] * 2 ); @@ -605,7 +607,8 @@ namespace ordlist { { rcu_lock lock; CPPUNIT_CHECK( l.get_with( itm, other_less() ) == nullptr ); - CPPUNIT_CHECK( !l.extract_with( ep, itm, other_less() )); + ep = l.extract_with( itm, other_less() ); + CPPUNIT_CHECK( !ep ); CPPUNIT_CHECK( ep.empty() ); } } @@ -614,7 +617,7 @@ namespace ordlist { { rcu_lock lock; CPPUNIT_CHECK( l.get_with( other_item( 0 ), other_less() ) == nullptr ); - CPPUNIT_CHECK( !l.extract_with( ep, other_item(0), other_less() )); + CPPUNIT_CHECK( !l.extract_with( other_item(0), other_less() )); CPPUNIT_CHECK( ep.empty() ); } }