mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
test/T360-symbol-hiding.sh: trim extra output from readelf
readelf on (at least) ppc64le sometimes generates some extension to the Ndx name inside '[]'. Remove this output to allow our simple column based parsing to work.
This commit is contained in:
parent
f01f6405c9
commit
6d5d28c593
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ test_begin_subtest 'checking output'
|
|||
test_expect_equal "$result" "$output"
|
||||
|
||||
test_begin_subtest 'comparing existing to exported symbols'
|
||||
readelf -Ws $NOTMUCH_BUILDDIR/lib/libnotmuch.so | \
|
||||
readelf -Ws $NOTMUCH_BUILDDIR/lib/libnotmuch.so | sed -e 's/\[[^]]*\]//' |\
|
||||
awk '$4 == "FUNC" && $5 == "GLOBAL" && $7 != "UND" {print $8}' | sort -u > ACTUAL
|
||||
sed -n 's/^\(notmuch_[a-zA-Z0-9_]*\)[[:blank:]]*(.*/\1/p' $NOTMUCH_SRCDIR/lib/notmuch.h | sort -u > EXPORTED
|
||||
test_expect_equal_file EXPORTED ACTUAL
|
||||
|
|
Loading…
Reference in a new issue