// Purpose: Test wxDynamicLibrary
// Author: Francesco Montorsi (extracted from console sample)
// Created: 2010-06-13
-// RCS-ID: $Id$
// Copyright: (c) 2010 wxWidgets team
///////////////////////////////////////////////////////////////////////////////
#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