Update of /cvsroot/cppunit/cppunit2/src/opentesttest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8806/src/opentesttest
Modified Files:
packetstest.cpp
Log Message:
* Added IntrusivePtr, a reference counted smart-pointer
* Changed Test hierarchy and TestFixture to use IntrusivePtr instead of SharedPtr (this allows simple upcasting).
Index: packetstest.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/opentesttest/packetstest.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** packetstest.cpp 4 Jul 2005 08:12:34 -0000 1.1
--- packetstest.cpp 20 Jul 2005 21:06:51 -0000 1.2
***************
*** 79,82 ****
--- 79,83 ----
{
Pos testDataLength = strlen(testData[index1]);
+ packets_.reset( new OpenTest::Packets( 4 ) ); // notes: test fails if using the same packets...
packets_->beginMessage();
packets_->serializationWrite( testData[index1], testDataLength );
|