From: Nikita Sobolev <sobolev(a)synopsys.com>
Test failed with error 'Could not open libtest31.so: File not found'.
dlopen function is trying to find libtest31.so in the same directory
where the test is run. But libtest31.so is lockated in testlib
directory. So fix changes the path to library.
Signed-off-by: Nikita Sobolev <Nikita.Sobolev(a)synopsys.com>
---
test/dlopen/tst-origin.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/dlopen/tst-origin.c b/test/dlopen/tst-origin.c
index 60fcd3f..e456f1e 100644
--- a/test/dlopen/tst-origin.c
+++ b/test/dlopen/tst-origin.c
@@ -12,13 +12,13 @@ int main(int argc, char **argv) {
int __attribute__((unused))(*mydltest)(const char *s);
char *error;
- h1 = dlopen ("libtest31.so", RTLD_LAZY);
+ h1 = dlopen ("testlib/libtest31.so", RTLD_LAZY);
if (!h1) {
fprintf(stderr, "Could not open libtest31.so: %s\n", dlerror());
exit(1);
}
- h2 = dlopen ("libtest31.so", RTLD_NOLOAD);
+ h2 = dlopen ("testlib/libtest31.so", RTLD_NOLOAD);
if (!h2) {
fprintf(stderr, "Could not open libtest31.so(RTLD_NOLOAD): %s\n", dlerror());
exit(1);
--
2.16.2