From 918d46e2ccda55ce3b21d489506190a8e14f2e19 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Jun 2015 19:11:31 +0200 Subject: [PATCH] Add a check for wxSocketServer creation to the unit tests. This should prevent an assert failure which happens if we call Accept() on an invalid server below and also confirm if the server creation really failed or not. --- tests/streams/socketstream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/streams/socketstream.cpp b/tests/streams/socketstream.cpp index 4574892a9a..10398ec1ab 100644 --- a/tests/streams/socketstream.cpp +++ b/tests/streams/socketstream.cpp @@ -69,6 +69,7 @@ protected: virtual void *Entry() { wxSocketServer srv(LocalAddress(m_port), wxSOCKET_REUSEADDR); + CPPUNIT_ASSERT( srv.IsOk() ); // FIXME: this is still not atomic, of course and the main thread could // call Connect() before we have time to Accept() but there is