Trying to understand why does the test fail in some build slaves builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72758
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/dynlib.h"
+#ifdef __UNIX__
+ #include "wx/filename.h"
+#endif
+
// ----------------------------------------------------------------------------
// test class
// ----------------------------------------------------------------------------
static const wxChar *LIB_NAME = wxT("/lib/libc.so.6");
#endif
static const wxChar *FUNC_NAME = wxT("strlen");
+
+ if ( !wxFileName::Exists(LIB_NAME) )
+ {
+ wxLogWarning("Shared library \"%s\" doesn't exist, "
+ "skipping DynamicLibraryTestCase::Load() test.");
+ return;
+ }
#else
#error "don't know how to test wxDllLoader on this platform"
#endif