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:
parent
b690a8f672
commit
e282b73a5b
@ -19,6 +19,10 @@
|
|||||||
|
|
||||||
#include "wx/dynlib.h"
|
#include "wx/dynlib.h"
|
||||||
|
|
||||||
|
#ifdef __UNIX__
|
||||||
|
#include "wx/filename.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// test class
|
// test class
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -57,6 +61,13 @@ void DynamicLibraryTestCase::Load()
|
|||||||
static const wxChar *LIB_NAME = wxT("/lib/libc.so.6");
|
static const wxChar *LIB_NAME = wxT("/lib/libc.so.6");
|
||||||
#endif
|
#endif
|
||||||
static const wxChar *FUNC_NAME = wxT("strlen");
|
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
|
#else
|
||||||
#error "don't know how to test wxDllLoader on this platform"
|
#error "don't know how to test wxDllLoader on this platform"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user