Move all C++ tests to cpp.
This commit is contained in:
19
cpp/dlload.cpp
Normal file
19
cpp/dlload.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <dlfcn.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main ()
|
||||
{
|
||||
// void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_LAZY|RTLD_GLOBAL);
|
||||
void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_NOW|RTLD_GLOBAL);
|
||||
if ( !h1 ) puts( dlerror() );
|
||||
printf( "handle1 = 0x%x\n", h1 );
|
||||
void* h2 = dlopen( "/home/vishap/p4/wb/main/src/icwb/test/libProteus.so", RTLD_LAZY|RTLD_GLOBAL);
|
||||
if ( !h2 ) puts( dlerror() );
|
||||
printf( "handle2 = 0x%x\n", h2 );
|
||||
|
||||
dlclose(h1);
|
||||
dlclose(h2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user