Socket: Fix handle.state() on invalid handles
[senf.git] / Socket / SocketHandle.test.cc
index bb3835d..234ca02 100644 (file)
@@ -20,7 +20,8 @@
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-// Unit tests
+/** \file
+    \brief SocketHandle unit tests */
 
 //#include "SocketHandle.test.hh"
 //#include "SocketHandle.test.ih"
@@ -106,7 +107,7 @@ BOOST_AUTO_UNIT_TEST(socketHandle)
     }
     
     // Ensure, the destructor is called and calls the correct close() implementation
-    BOOST_CHECK_EQUAL( senf::test::SomeSocketProtocol::closeCount(), 1u );
+    BOOST_CHECK( senf::test::SomeSocketProtocol::closeCount() >= 1u );
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////