X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53c2cdb0b1280582e9c95033ffac47a83e088adc..01b5ad3b500627ae3ebadc755f47c816a859e6bb:/tests/image/image.cpp diff --git a/tests/image/image.cpp b/tests/image/image.cpp index 985a0bc984..f05707927c 100644 --- a/tests/image/image.cpp +++ b/tests/image/image.cpp @@ -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;