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 20:30:15 UTC
svn commit: r765714 - in
/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test:
activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp
decaf/io/DataInputStreamTest.cpp
Author: tabish
Date: Thu Apr 16 18:30:15 2009
New Revision: 765714
URL: http://svn.apache.org/viewvc?rev=765714&view=rev
Log:
Fix an uninitialized variable in the tests, gets rid of a warning on the windows build.
Modified:
activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp
activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp
Modified: activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp?rev=765714&r1=765713&r2=765714&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp (original)
+++ activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp Thu Apr 16 18:30:15 2009
@@ -108,7 +108,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/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp?rev=765714&r1=765713&r2=765714&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp (original)
+++ activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp Thu Apr 16 18:30:15 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] );
}
}