diff options
author | ctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-08 23:35:14 +0000 |
---|---|---|
committer | ctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-08 23:35:14 +0000 |
commit | 786f817740a7dca966e5f49b0b4976b32d0be744 (patch) | |
tree | 7aed39930d05ef1f28db4df7227d5b55ec792763 /libvtv/testsuite/dlopen.cc | |
parent | 1eadcdffcb14af40bebaec65de4bf7ef75756164 (diff) | |
download | gcc-786f817740a7dca966e5f49b0b4976b32d0be744.tar.gz |
Update libvtv testsuite so that most of the tests now run under
the dejagnu test harness.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202373 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libvtv/testsuite/dlopen.cc')
-rw-r--r-- | libvtv/testsuite/dlopen.cc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libvtv/testsuite/dlopen.cc b/libvtv/testsuite/dlopen.cc deleted file mode 100644 index 4ffbe83acf7..00000000000 --- a/libvtv/testsuite/dlopen.cc +++ /dev/null @@ -1,38 +0,0 @@ -#include <stdlib.h> -#include <dlfcn.h> -#include <stdio.h> - - - -typedef void (*voidfn)(void); - -int failures = 0; - -void -__vtv_verify_fail (void **data_set_ptr, const void *vtbl_pointer) -{ - failures++; - return; -} - - -int main() -{ - char so_name[] = "so0.so"; - void * dlhandle = dlopen(so_name, RTLD_NOW); - if (!dlhandle) - { - fprintf(stderr, "dlopen %s error: %s\n", so_name, dlerror()); - exit(1); - } - voidfn so_entry = (voidfn)dlsym(dlhandle, "so_entry_0"); - if (!so_entry) - { - fprintf(stderr, "dlopen %s dlsym error: %s\n", so_name, dlerror()); - exit(2); - } - - so_entry(); - - dlclose(dlhandle); -} |