From c99214eb520e7e597a9381bcdcc3316eb6ceff07 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 1 Jun 2009 14:45:26 +0000 Subject: [PATCH] add check about network connectivity; don't run the test if it's not available git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/image/image.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/image/image.cpp b/tests/image/image.cpp index 985a0bc984..e1fcac54b3 100644 --- a/tests/image/image.cpp +++ b/tests/image/image.cpp @@ -107,6 +107,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; -- 2.45.2