From: Vadim Zeitlin Date: Sun, 16 Jan 2005 22:24:04 +0000 (+0000) Subject: small tweaks to wxDynamicLibrary test X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e259f83e0f6b1fb78e9c66892be730d5034d2c27 small tweaks to wxDynamicLibrary test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 8c748f841c..af40ac2e2c 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -84,7 +84,7 @@ #define TEST_WCHAR #define TEST_ZIP #else // #if TEST_ALL - #define TEST_STDPATHS + #define TEST_DLLLOADER #endif // some tests are interactive, define this to run them @@ -382,7 +382,7 @@ static void TestDllLoad() static const wxChar *FUNC_NAME = _T("lstrlenA"); #elif defined(__UNIX__) // 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"); #else #error "don't know how to test wxDllLoader on this platform" @@ -406,6 +406,9 @@ static void TestDllLoad() } else { + wxPrintf(_T("Calling %s dynamically loaded from %s "), + FUNC_NAME, LIB_NAME); + if ( pfnStrlen("foo") != 3 ) { wxPrintf(_T("ERROR: loaded function is not wxStrlen()!\n"));