Socket/SocketHandle.test: bugfix of Rev. 1277
tho [Fri, 24 Jul 2009 14:44:02 +0000 (14:44 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1280 270642c3-0616-0410-b53a-bc976706d245

Packets/80221Bundle/MIHPacket.hh
Socket/SocketHandle.test.cc

index cafac5a..fa819b5 100644 (file)
@@ -243,6 +243,7 @@ namespace senf {
         static factory_t nextPacketType(packet p);
         
         enum ResponseStatus { Success, UnspecifiedFailure, Rejected, AuthorizationFailure, NetworkError };
+        enum Opcode { Request=1, Response, Indication }; 
     };
 
     /** \brief MIH packet typedef */
index bc523a3..234ca02 100644 (file)
@@ -107,7 +107,7 @@ BOOST_AUTO_UNIT_TEST(socketHandle)
     }
     
     // Ensure, the destructor is called and calls the correct close() implementation
-    BOOST_CHECK( senf::test::SomeSocketProtocol::closeCount() > 1u );
+    BOOST_CHECK( senf::test::SomeSocketProtocol::closeCount() >= 1u );
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////