aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_os_dynlinker.cpp
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-05-01 03:55:14 +0200
committerSven Göthel <[email protected]>2024-05-01 03:55:14 +0200
commitd09e193bb5584461af2978dd46a8ddd6103de260 (patch)
treee3a3fcdd24a94b9a7cb69a2e7f43d39d7e6ae78d /test/test_os_dynlinker.cpp
parent93d25d70fc4dd2e4380ca5dfd89960cdeb1cccf5 (diff)
dyn_linker: Use (more natural) 'void*' for libhandle_t and symhandle_t as used by dlopen/dlsym ..
Diffstat (limited to 'test/test_os_dynlinker.cpp')
-rw-r--r--test/test_os_dynlinker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_os_dynlinker.cpp b/test/test_os_dynlinker.cpp
index 30056ea..dc2b7db 100644
--- a/test/test_os_dynlinker.cpp
+++ b/test/test_os_dynlinker.cpp
@@ -68,11 +68,11 @@ TEST_CASE( "Test 01 Global Open dlsym ..", "[dll][os]" ) {
jau::os::DynamicLinker::libhandle_t libHandle = dl.openLibraryGlobal(libPath);
std::cout << "- Path: " << libPath << std::endl;
std::cout << "- LibHandle: " << jau::to_hexstring(libHandle) << std::endl;
- REQUIRE( 0 != libHandle );
+ REQUIRE( nullptr != libHandle );
jau::os::DynamicLinker::symhandle_t symHandle = dl.lookupSymbol(libHandle, symbolName);
std::cout << "- Symbol '" << symbolName << "': Handle = " << jau::to_hexstring(symHandle) << std::endl;
- REQUIRE( 0 != symHandle );
+ REQUIRE( nullptr != symHandle );
const char* nativePath = dl.lookupLibraryPathname(libHandle, symbolName);
if( nullptr == nativePath ) {