Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | Remove the relative path for libnettle.so so the test |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | program can find it. |
| 3 | Relative paths are not suitable, as the folder strucure for ptest |
| 4 | is different from the one expected by the nettle testsuite. |
| 5 | |
| 6 | Upstream-Status: Inappropriate [embedded specific] |
| 7 | |
| 8 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 9 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 10 | --- |
| 11 | testsuite/dlopen-test.c | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 14 | diff --git a/testsuite/dlopen-test.c b/testsuite/dlopen-test.c |
| 15 | index 4265bf7..1a25d17 100644 |
| 16 | --- a/testsuite/dlopen-test.c |
| 17 | +++ b/testsuite/dlopen-test.c |
| 18 | @@ -15,7 +15,7 @@ int |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | main (int argc UNUSED, char **argv UNUSED) |
| 20 | { |
| 21 | #if HAVE_LIBDL |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 22 | - void *handle = dlopen ("../libnettle." SO_EXT, RTLD_NOW); |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 23 | + void *handle = dlopen ("libnettle.so", RTLD_NOW); |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | int (*get_version)(void); |
| 25 | if (!handle) |
| 26 | { |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 27 | -- |
| 28 | 2.17.1 |
| 29 | |