X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f51673bb890f637a1979df92ff939935a1dd460..32cdc45397d8c0a24735f84e1dcf83bba1980f2d:/tests/test.cpp?ds=sidebyside diff --git a/tests/test.cpp b/tests/test.cpp index 758c5fcb1a..eeefa10849 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -28,14 +28,16 @@ #ifdef __VISUALC__ #pragma warning(disable:4100) #endif + #include -#ifdef __VISUALC__ - #pragma warning(default:4100) -#endif #include #include #include #include + +#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