#include "wx/dynlib.h"
+#ifdef __UNIX__
+ #include "wx/filename.h"
+ #include "wx/log.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