activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r592025 - in /activemq/activemq-cpp/decaf/trunk/src/test/decaf/io: DataInputStreamTest.cpp DataInputStreamTest.h DataOutputStreamTest.cpp
Date Mon, 05 Nov 2007 14:58:17 GMT
Author: tabish
Date: Mon Nov  5 06:58:14 2007
New Revision: 592025

URL: http://svn.apache.org/viewvc?rev=592025&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-136
http://issues.apache.org/activemq/browse/AMQCPP-103

Modified:
    activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.cpp
    activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.h
    activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataOutputStreamTest.cpp

Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.cpp?rev=592025&r1=592024&r2=592025&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.cpp Mon Nov  5
06:58:14 2007
@@ -75,6 +75,7 @@
         is->read( result, 0, testData.length() );
         CPPUNIT_ASSERT_MESSAGE("Incorrect data read",
             string( (const char*)result, testData.size() ) == testData );
+        delete result;
     } catch( IOException &e ) {
         CPPUNIT_FAIL("IOException during read test : " + e.getMessage());
     }
@@ -225,6 +226,8 @@
         "should throw NullPointerException",
         is.readFully( byteArray, 0, Integer::MAX_VALUE ),
         NullPointerException );
+
+    delete byteArray;
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.h?rev=592025&r1=592024&r2=592025&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataInputStreamTest.h Mon Nov  5 06:58:14
2007
@@ -112,6 +112,9 @@
     private:
 
         void openDataInputStream() {
+            delete bais;
+            delete is;
+
             bais = new ByteArrayInputStream( baos->toByteArray(), baos->size() );
             is = new DataInputStream( bais );
         }

Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataOutputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataOutputStreamTest.cpp?rev=592025&r1=592024&r2=592025&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataOutputStreamTest.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/io/DataOutputStreamTest.cpp Mon Nov 
5 06:58:14 2007
@@ -66,6 +66,7 @@
         is->close();
         CPPUNIT_ASSERT_MESSAGE("Incorrect bytes written",
             string( (const char*)rbuf, 150 ) == testData.substr( 0, 150 ) );
+        delete rbuf;
     } catch( IOException &e ) {
         CPPUNIT_FAIL("Exception during write test : " + e.getMessage());
     }



Mime
View raw message