Test for the shared library existence in DynamicLibraryTestCase.

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
This commit is contained in:
Vadim Zeitlin 2012-10-24 23:13:38 +00:00
parent b690a8f672
commit e282b73a5b

View File

@ -19,6 +19,10 @@
#include "wx/dynlib.h"
#ifdef __UNIX__
#include "wx/filename.h"
#endif
// ----------------------------------------------------------------------------
// test class
// ----------------------------------------------------------------------------
@ -57,6 +61,13 @@ void DynamicLibraryTestCase::Load()
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