projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: invoke full_cleanup from script trap handlers, use modprobe -r
[lttng-tools.git]
/
tests
/
regression
/
ust
/
ust-dl
/
prog.c
diff --git
a/tests/regression/ust/ust-dl/prog.c
b/tests/regression/ust/ust-dl/prog.c
index e8e4b2641a1c6a0437c0e94ca6933eda741e30fc..669792d9d97a7c0158886052279d4a4e5e724dfd 100644
(file)
--- a/
tests/regression/ust/ust-dl/prog.c
+++ b/
tests/regression/ust/ust-dl/prog.c
@@
-13,7
+13,12
@@
*/
int main(int argc, char **argv)
{
*/
int main(int argc, char **argv)
{
- void *h0, *h1, *h2, *h3, *h4;
+ void *h0, *h2, *h3, *h4;
+
+#ifdef HAVE_DLMOPEN
+ void *h1;
+#endif
+
char *error;
int (*foo)(void);
char *error;
int (*foo)(void);
@@
-21,10
+26,14
@@
int main(int argc, char **argv)
if (!h0) {
goto get_error;
}
if (!h0) {
goto get_error;
}
+
+#ifdef HAVE_DLMOPEN
h1 = dlmopen(LM_ID_BASE, "libfoo.so", RTLD_LAZY);
if (!h1) {
goto get_error;
}
h1 = dlmopen(LM_ID_BASE, "libfoo.so", RTLD_LAZY);
if (!h1) {
goto get_error;
}
+#endif
+
h2 = dlopen("libzzz.so", RTLD_LAZY);
if (!h2) {
goto get_error;
h2 = dlopen("libzzz.so", RTLD_LAZY);
if (!h2) {
goto get_error;
@@
-38,7
+47,7
@@
int main(int argc, char **argv)
goto get_error;
}
goto get_error;
}
- foo = dlsym(h
1
, "foo");
+ foo = dlsym(h
3
, "foo");
error = dlerror();
if (error != NULL) {
goto error;
error = dlerror();
if (error != NULL) {
goto error;
@@
-49,9
+58,13
@@
int main(int argc, char **argv)
if (dlclose(h0)) {
goto get_error;
}
if (dlclose(h0)) {
goto get_error;
}
+
+#ifdef HAVE_DLMOPEN
if (dlclose(h1)) {
goto get_error;
}
if (dlclose(h1)) {
goto get_error;
}
+#endif
+
if (dlclose(h2)) {
goto get_error;
}
if (dlclose(h2)) {
goto get_error;
}
This page took
0.026109 seconds
and
5
git commands to generate.