X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69fc85873dfe7a9ea4f25ffc34bec7c0ee719368..e1efca652844273c3e8d32c7e5f442b87e455ca7:/tests/misc/dynamiclib.cpp?ds=sidebyside diff --git a/tests/misc/dynamiclib.cpp b/tests/misc/dynamiclib.cpp index f05090d575..bf33350099 100644 --- a/tests/misc/dynamiclib.cpp +++ b/tests/misc/dynamiclib.cpp @@ -41,7 +41,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( DynamicLibraryTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( DynamicLibraryTestCase, "DynamicLibraryTestCase" ); void DynamicLibraryTestCase::Load() @@ -50,8 +50,12 @@ void DynamicLibraryTestCase::Load() static const wxChar *LIB_NAME = wxT("kernel32.dll"); static const wxChar *FUNC_NAME = wxT("lstrlenA"); #elif defined(__UNIX__) +#ifdef __DARWIN__ + static const wxChar *LIB_NAME = wxT("/usr/lib/libc.dylib"); +#else // weird: using just libc.so does *not* work! static const wxChar *LIB_NAME = wxT("/lib/libc.so.6"); +#endif static const wxChar *FUNC_NAME = wxT("strlen"); #else #error "don't know how to test wxDllLoader on this platform"