Skip to content

Commit 297abed

Browse files
authored
Merge pull request #352 from NixOS/test-fix
fix build-id test on openbsd
2 parents f7a1cc2 + 301aa6a commit 297abed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/build-id.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ long_rpath="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
1616
../src/patchelf \
1717
--set-rpath "$long_rpath" "${SCRATCH}/libbuildid.so"
1818

19-
readelf -n "${SCRATCH}/libbuildid.so" | grep -q "Build ID"
19+
# older readelf versions do not recognize build id, but we can grep by constant
20+
readelf -n "${SCRATCH}/libbuildid.so" | grep -q -F -e 'Build ID' -e 'Unknown note type: (0x00000003)'

0 commit comments

Comments
 (0)