small tweaks to wxDynamicLibrary test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-16 22:24:04 +00:00
parent 7586c7f900
commit e259f83e0f

View File

@@ -84,7 +84,7 @@
#define TEST_WCHAR #define TEST_WCHAR
#define TEST_ZIP #define TEST_ZIP
#else // #if TEST_ALL #else // #if TEST_ALL
#define TEST_STDPATHS #define TEST_DLLLOADER
#endif #endif
// some tests are interactive, define this to run them // some tests are interactive, define this to run them
@@ -382,7 +382,7 @@ static void TestDllLoad()
static const wxChar *FUNC_NAME = _T("lstrlenA"); static const wxChar *FUNC_NAME = _T("lstrlenA");
#elif defined(__UNIX__) #elif defined(__UNIX__)
// weird: using just libc.so does *not* work! // weird: using just libc.so does *not* work!
static const wxChar *LIB_NAME = _T("/lib/libc-2.0.7.so"); static const wxChar *LIB_NAME = _T("/lib/libc.so.6");
static const wxChar *FUNC_NAME = _T("strlen"); static const wxChar *FUNC_NAME = _T("strlen");
#else #else
#error "don't know how to test wxDllLoader on this platform" #error "don't know how to test wxDllLoader on this platform"
@@ -406,6 +406,9 @@ static void TestDllLoad()
} }
else else
{ {
wxPrintf(_T("Calling %s dynamically loaded from %s "),
FUNC_NAME, LIB_NAME);
if ( pfnStrlen("foo") != 3 ) if ( pfnStrlen("foo") != 3 )
{ {
wxPrintf(_T("ERROR: loaded function is not wxStrlen()!\n")); wxPrintf(_T("ERROR: loaded function is not wxStrlen()!\n"));