activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1338751 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test-benchmarks/activemq/util/PrimitiveMapBenchmark.cpp
Date Tue, 15 May 2012 15:29:27 GMT
Author: tabish
Date: Tue May 15 15:29:27 2012
New Revision: 1338751

URL: http://svn.apache.org/viewvc?rev=1338751&view=rev
Log:
silence some compiler warnings on newer GCC versions

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test-benchmarks/activemq/util/PrimitiveMapBenchmark.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test-benchmarks/activemq/util/PrimitiveMapBenchmark.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test-benchmarks/activemq/util/PrimitiveMapBenchmark.cpp?rev=1338751&r1=1338750&r2=1338751&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test-benchmarks/activemq/util/PrimitiveMapBenchmark.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test-benchmarks/activemq/util/PrimitiveMapBenchmark.cpp
Tue May 15 15:29:27 2012
@@ -90,15 +90,25 @@ void PrimitiveMapBenchmark::run() {
 
     for( int i = 0; i < numRuns; ++i ){
         boolResult = map.getBool( "BOOL" );
+        CPPUNIT_ASSERT(boolResult == true);
         byteResult = map.getByte( "BYTE" );
+        CPPUNIT_ASSERT(byteResult == 12);
         charResult = map.getChar( "CHAR" );
+        CPPUNIT_ASSERT(charResult == 60);
         intResult = map.getInt( "INT" );
+        CPPUNIT_ASSERT(intResult == 54275482);
         shortResult = map.getShort( "SHORT" );
+        CPPUNIT_ASSERT(shortResult == 32767);
         longResult = map.getLong( "LONG" );
+        CPPUNIT_ASSERT(longResult == 0xFFLL);
         doubleResult = map.getDouble( "DOUBLE" );
+        CPPUNIT_ASSERT(doubleResult == 1321.1516);
         floatResult = map.getFloat( "FLOAT" );
+        CPPUNIT_ASSERT(floatResult == 45.45f);
         stringResult = map.getString( "STRING" );
+        CPPUNIT_ASSERT(stringResult == testString);
         bytesResult = map.getByteArray( "BYTES" );
+        CPPUNIT_ASSERT(bytesResult.size() == byteBuffer.size());
     }
 
     for( int i = 0; i < numRuns; ++i ){



Mime
View raw message