]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/image/image.cpp
Do not generate wxEVT_PG_SELECTED with direct ClearSelection() and SelectProperty...
[wxWidgets.git] / tests / image / image.cpp
index 985a0bc9845381faa56e7c569110ddde95176ff9..f05707927c96af674cdd1609081edad97d241112 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "wx/image.h"
 #include "wx/url.h"
+#include "wx/log.h"
 #include "wx/mstream.h"
 #include "wx/zstream.h"
 #include "wx/wfstream.h"
@@ -107,6 +108,12 @@ void ImageTestCase::LoadFromFile()
 
 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;