Add some guards against missing build options

This commit is contained in:
Maarten Bent
2026-06-06 12:43:17 +02:00
parent a967bead1a
commit a113ddc9e5
9 changed files with 38 additions and 1 deletions
+4
View File
@@ -135,6 +135,8 @@ TEST_CASE_METHOD(ImageHandlersInit, "wxImage::LoadFromFile", "[image]")
CHECK(img.LoadFile("image/bitfields.bmp", wxBITMAP_TYPE_BMP));
}
#if wxUSE_URL
TEST_CASE_METHOD(ImageHandlersInit, "wxImage::LoadFromSocketStream", "[image]")
{
// This test doesn't work any more even using the IP address below as the
@@ -161,6 +163,8 @@ TEST_CASE_METHOD(ImageHandlersInit, "wxImage::LoadFromSocketStream", "[image]")
CHECK( img.LoadFile(*in_stream, wxBITMAP_TYPE_PNG) );
}
#endif // wxUSE_URL
TEST_CASE_METHOD(ImageHandlersInit, "wxImage::LoadFromZipStream", "[image]")
{
for (unsigned int i=0; i<WXSIZEOF(g_testfiles); i++)