You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/04/16 15:28:59 UTC
svn commit: r765629 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/test:
activemq/wireformat/openwire/utils/OpenwireStringSupportTest.cpp
decaf/io/DataInputStreamTest.cpp
Author: tabish
Date: Thu Apr 16 13:28:58 2009
New Revision: 765629
URL: http://svn.apache.org/viewvc?rev=765629&view=rev
Log:
Fix an uninitialized variable in the tests, gets rid of a warning on the windows build.
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/utils/OpenwireStringSupportTest.cpp
activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/DataInputStreamTest.cpp
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/utils/OpenwireStringSupportTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/utils/OpenwireStringSupportTest.cpp?rev=765629&r1=765628&r2=765629&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/utils/OpenwireStringSupportTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/utils/OpenwireStringSupportTest.cpp Thu Apr 16 13:28:58 2009
@@ -109,7 +109,7 @@
std::string result = reader.readUTF();
- for( std::size_t i; i < result.length(); ++i ) {
+ for( std::size_t i = 0; i < result.length(); ++i ) {
CPPUNIT_ASSERT( (unsigned char)result[i] == expect[i] );
}
}
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/DataInputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/DataInputStreamTest.cpp?rev=765629&r1=765628&r2=765629&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/DataInputStreamTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/DataInputStreamTest.cpp Thu Apr 16 13:28:58 2009
@@ -526,7 +526,7 @@
std::string result = reader.readUTF();
- for( std::size_t i; i < result.length(); ++i ) {
+ for( std::size_t i = 0; i < result.length(); ++i ) {
CPPUNIT_ASSERT( (unsigned char)result[i] == expect[i] );
}
}