diff --git a/tests/set-rpath-library.sh b/tests/set-rpath-library.sh index cb15f375..ceada0b5 100755 --- a/tests/set-rpath-library.sh +++ b/tests/set-rpath-library.sh @@ -15,7 +15,8 @@ mkdir -p "${SCRATCH}/libnon-default-alignment" cp main-scoped "${SCRATCH}/" cp libfoo-scoped.so "${SCRATCH}/libsA/" cp libbar-scoped.so "${SCRATCH}/libsB/" -cp ../../tests/libnon-default-alignment.so.zip "${SCRATCH}/libnon-default-alignment/" +TEST_DIR=$(dirname "$(readlink -f "$0")") +cp ${TEST_DIR}/libnon-default-alignment.so.zip "${SCRATCH}/libnon-default-alignment/" (cd "${SCRATCH}/libnon-default-alignment/"; unzip libnon-default-alignment.so.zip) oldRPath=$(../src/patchelf --print-rpath "${SCRATCH}"/main-scoped)