From c515e20be4264c8d4acb3ae334070189beaa40c3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Jul 2008 02:29:42 +0000 Subject: [PATCH] enable the rest of wxSocketStream tests now that they pass git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/streams/socketstream.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/streams/socketstream.cpp b/tests/streams/socketstream.cpp index 40fc680..e719f0b 100644 --- a/tests/streams/socketstream.cpp +++ b/tests/streams/socketstream.cpp @@ -81,7 +81,10 @@ protected: wxSocketBase *socket = srv.Accept(); if ( socket ) + { (*m_accept)(*socket); + delete socket; + } return NULL; } @@ -106,19 +109,12 @@ public: CPPUNIT_TEST_SUITE(socketStream); // Base class stream tests the socketStream supports. CPPUNIT_TEST(Input_GetC); - - // This one fails because wxSocketInputStream::Eof() is not implemented - // correctly - //CPPUNIT_TEST(Input_Read); - - // The other ones untested yet -#if 0 CPPUNIT_TEST(Input_Eof); + CPPUNIT_TEST(Input_Read); CPPUNIT_TEST(Input_LastRead); CPPUNIT_TEST(Input_CanRead); CPPUNIT_TEST(Input_Peek); CPPUNIT_TEST(Input_Ungetch); -#endif CPPUNIT_TEST(Output_PutC); CPPUNIT_TEST(Output_Write); -- 2.7.4