From 3ebee0f9611938e7e12d5a2383ad1b3b17f83c4a Mon Sep 17 00:00:00 2001 From: Mark Donnelly Date: Mon, 23 Dec 2013 16:11:58 -0500 Subject: [PATCH 1/1] This test is no longer relevant. --- test/npapi/test_dlopen.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 test/npapi/test_dlopen.c diff --git a/test/npapi/test_dlopen.c b/test/npapi/test_dlopen.c deleted file mode 100644 index bb34c62..0000000 --- a/test/npapi/test_dlopen.c +++ /dev/null @@ -1,45 +0,0 @@ -#include -#include -#include -#include - -int main(int argc, char **argv) -{ - void *lib_handle; - int (*fn)(void); - int x; - char *error; - - char* funcs[4] = {"NP_Initialize", "NP_Shutdown", "NPP_New", "NPP_Destroy"}; - - lib_handle = dlopen("../../npapi/libWebShot.so", RTLD_LAZY); - if (!lib_handle) - { - fprintf(stderr, "%s\n", dlerror()); - exit(1); - } - - for (x=0; x<4; x++) - { - int retVal = 0; - - fn = dlsym(lib_handle, funcs[x]); - if ((error = dlerror()) != NULL) - { - fprintf(stderr, "Did not find function %s: %s\n", funcs[x], error); - exit(2); - } - - retVal = (*fn)(); - printf("%s() => %i\n", funcs[x], retVal); - } - - - /* - (*fn)(&x); - printf("Valx=%d\n",x); - */ - - dlclose(lib_handle); - return 0; -} -- 2.1.4