]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/test.cpp
Implement wxGetHostName() for Windows CE.
[wxWidgets.git] / tests / test.cpp
index 758c5fcb1a4e404bc2a4699a3ad0fc96c798719f..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();
@@ -385,7 +388,11 @@ bool TestApp::OnInit()
     if ( !TestAppBase::OnInit() )
         return false;
 
-    cout << "Test program for wxWidgets\n"
+#if wxUSE_GUI
+    cout << "Test program for wxWidgets GUI features\n"
+#else
+    cout << "Test program for wxWidgets non-GUI features\n"
+#endif
          << "build: " << WX_BUILD_OPTIONS_SIGNATURE << std::endl;
 
 #if wxUSE_GUI