]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/test.cpp
disable warnings about unused parameters in CppUnit headers
[wxWidgets.git] / tests / test.cpp
index 067af9edd172c4612be565a2b7afefb64310b44c..eeefa10849189a3a53477195733e9578b687e3c1 100644 (file)
 #ifdef __VISUALC__
     #pragma warning(disable:4100)
 #endif
+
 #include <cppunit/TestListener.h>
-#ifdef __VISUALC__
-    #pragma warning(default:4100)
-#endif
 #include <cppunit/Protector.h>
 #include <cppunit/Test.h>
 #include <cppunit/TestResult.h>
 #include <cppunit/TestFailure.h>
+
+#ifdef __VISUALC__
+    #pragma warning(default:4100)
+#endif
 #include "wx/afterstd.h"
 
 #include "wx/cmdline.h"
@@ -336,6 +338,7 @@ extern bool IsNetworkAvailable()
     }
 
     wxSocketClient sock;
+    sock.SetTimeout(10);    // 10 secs
     bool online = sock.Connect(addr);
     
     wxSocketBase::Shutdown();