From: tho Date: Sun, 16 Aug 2009 15:08:29 +0000 (+0000) Subject: Socket: fixed socket handle dumpState() tests X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=ce4eb240599560a7c69222c22d8916ab6ebe450c;p=senf.git Socket: fixed socket handle dumpState() tests git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1293 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/ProtocolServerSocketHandle.test.cc b/Socket/ProtocolServerSocketHandle.test.cc index 9a3913f..7d51364 100644 --- a/Socket/ProtocolServerSocketHandle.test.cc +++ b/Socket/ProtocolServerSocketHandle.test.cc @@ -67,13 +67,8 @@ BOOST_AUTO_UNIT_TEST(protocolServerSocketHandle) BOOST_CHECK_EQUAL( client.fd(), -1 ); BOOST_CHECK_EQUAL( h.dumpState(), - "file.handle: -1\n" - "file.refcount: 2\n" - "handle: senf::ProtocolServerSocketHandle<(anonymous namespace)::MySocketProtocol>\n" - "socket.protocol: (anonymous namespace)::MySocketProtocol\n" - "socket.protocol.policy: senf::SocketPolicy\n" - "socket.server: true\n" ); - + "handle: senf::ProtocolServerSocketHandle<(anonymous namespace)::MySocketProtocol>\n" + "valid: false\n" ); } { diff --git a/Socket/SocketHandle.test.cc b/Socket/SocketHandle.test.cc index 234ca02..b4d8e5c 100644 --- a/Socket/SocketHandle.test.cc +++ b/Socket/SocketHandle.test.cc @@ -96,12 +96,13 @@ BOOST_AUTO_UNIT_TEST(socketHandle) std::bad_cast ); BOOST_CHECK_EQUAL( myh.dumpState(), - "file.handle: 0\n" - "file.refcount: 3\n" - "handle: senf::SocketHandle >\n" - "socket.protocol: senf::test::SomeSocketProtocol\n" - "socket.protocol.policy: senf::SocketPolicy\n" - "socket.server: false\n" ); + "file.handle: 0\n" + "file.refcount: 3\n" + "handle: senf::SocketHandle >\n" + "socket.protocol: senf::test::SomeSocketProtocol\n" + "socket.protocol.policy: senf::SocketPolicy\n" + "socket.server: false\n" + "valid: true\n" ); SENF_CHECK_NO_THROW( myh.facet() ); }