From c15ae5e4a35e227e282c0d4fe6b21be15169aa44 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 d0b8856f0b..2837f6add1 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