]> git.saurik.com Git - wxWidgets.git/commitdiff
enable the rest of wxSocketStream tests now that they pass
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2008 02:29:42 +0000 (02:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2008 02:29:42 +0000 (02:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/streams/socketstream.cpp

index 40fc6800b4caa85b714cb0933a0edae91f352fcb..e719f0b99445712680ac8e12c6a2b7fdceacef8c 100644 (file)
@@ -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);