X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fdlopen%2Fdlopen.c;h=d367580c3698cf86641cb2e7399def4d542837f6;hb=37ee34e4d9b9363c758aa43255d71661900e89b0;hp=9fb0edd90b3dcce49dd9b5e0d51ecec004d0912c;hpb=2b9093e12b00c876f5a5008700ede4e0d234dc43;p=ust.git diff --git a/tests/dlopen/dlopen.c b/tests/dlopen/dlopen.c index 9fb0edd..d367580 100644 --- a/tests/dlopen/dlopen.c +++ b/tests/dlopen/dlopen.c @@ -15,6 +15,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +/* The aim of this test is to verify whether ust behaves correctly when + * tracing a marker that is in a dlopen()'d library. It also checks the + * library can be unloaded. + */ + #include #include #include @@ -23,7 +28,7 @@ int main() { int (*fptr)(); - trace_mark(ust, from_main_before_lib, "%s", "Event occured in the main program before" + trace_mark(from_main_before_lib, "%s", "Event occured in the main program before" " the opening of the library\n"); void *lib_handle = dlopen("libdummy.so", RTLD_LAZY); @@ -42,7 +47,7 @@ int main() (*fptr)(); dlclose(lib_handle); - trace_mark(ust, from_main_after_lib,"%s", "Event occured in the main program after " + trace_mark(from_main_after_lib,"%s", "Event occured in the main program after " "the library has been closed\n"); return 0;