]> git.saurik.com Git - wxWidgets.git/commitdiff
add check about network connectivity; don't run the test if it's not available
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 1 Jun 2009 14:45:26 +0000 (14:45 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 1 Jun 2009 14:45:26 +0000 (14:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/image/image.cpp

index 985a0bc9845381faa56e7c569110ddde95176ff9..e1fcac54b3582c6b942c39f87a3ccc3d178b3826 100644 (file)
@@ -107,6 +107,12 @@ void ImageTestCase::LoadFromFile()
 
 void ImageTestCase::LoadFromSocketStream()
 {
 
 void ImageTestCase::LoadFromSocketStream()
 {
+    if (!IsNetworkAvailable())      // implemented in test.cpp
+    {
+        wxLogWarning("No network connectivity; skipping the ImageTestCase::LoadFromSocketStream test unit.");
+        return;
+    }
+
     struct {
         const char* url;
         wxBitmapType type;
     struct {
         const char* url;
         wxBitmapType type;