summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-12-06 21:45:17 +0100
committerJörg Thalheim <joerg@thalheim.io>2021-12-06 21:45:26 +0100
commit301aa6ae340434c3eb540bae31016907d26c0858 (patch)
treef6a5fb545c74f58b9576bbfa0ae2d504db31dfcd /tests
parentf7a1cc299147757a205dd37de134eb78be27ccfb (diff)
downloadpatchelf-301aa6ae340434c3eb540bae31016907d26c0858.tar.gz
fix build-id test on openbsd
Diffstat (limited to 'tests')
-rwxr-xr-xtests/build-id.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/build-id.sh b/tests/build-id.sh
index 45a6c4d..81b8f06 100755
--- a/tests/build-id.sh
+++ b/tests/build-id.sh
@@ -16,4 +16,5 @@ long_rpath="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
../src/patchelf \
--set-rpath "$long_rpath" "${SCRATCH}/libbuildid.so"
-readelf -n "${SCRATCH}/libbuildid.so" | grep -q "Build ID"
+# older readelf versions do not recognize build id, but we can grep by constant
+readelf -n "${SCRATCH}/libbuildid.so" | grep -q -F -e 'Build ID' -e 'Unknown note type: (0x00000003)'