Packets: Fix annotation unit-test for 'final=1'
g0dil [Wed, 11 Aug 2010 15:02:12 +0000 (15:02 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1676 270642c3-0616-0410-b53a-bc976706d245

senf/Packets/Packet.test.cc

index 5b318d1..e735207 100644 (file)
@@ -335,6 +335,7 @@ SENF_AUTO_UNIT_TEST(packetAnnotation)
     BOOST_CHECK( Reg::lookup<ComplexAnnotation>() < 0 );
     BOOST_CHECK( Reg::lookup<ComplexEmptyAnnotation>() < 0 );
 
+#ifdef SENF_DEBUG
     std::stringstream ss;
 
     senf::dumpPacketAnnotationRegistry(ss);
@@ -347,6 +348,7 @@ SENF_AUTO_UNIT_TEST(packetAnnotation)
         "      (anonymous namespace)::ComplexAnnotation                  yes          8\n"
         "      (anonymous namespace)::LargeAnnotation                    no          32\n"
         "   0  (anonymous namespace)::IntAnnotation                      no           4\n" );
+#endif
 }
 
 #ifdef COMPILE_CHECK