]> git.notmuchmail.org Git - notmuch/blobdiff - test/T360-symbol-hiding.sh
test: simplify T360-symbol-hiding, use nm instead of objdump
[notmuch] / test / T360-symbol-hiding.sh
index 636ec9171a2f32a9564c55d6d2a7e16277756ff5..8fc4bdf61f9021f624cca0bfbbbbbebee775b43e 100755 (executable)
@@ -26,7 +26,7 @@ test_begin_subtest 'checking output'
 test_expect_equal "$result" "$output"
 
 test_begin_subtest 'comparing existing to exported symbols'
-objdump -t $TEST_DIRECTORY/../lib/*.o | awk '$4 == ".text" && $6 ~ "^notmuch" {print $6}' | sort | uniq > ACTUAL
+nm -P $TEST_DIRECTORY/../lib/libnotmuch.so | awk '$2 == "T" && $1 ~ "^notmuch" {print $1}' | sort | uniq > ACTUAL
 sed -n 's/[[:blank:]]*\(notmuch_[^;]*\);/\1/p' $TEST_DIRECTORY/../notmuch.sym | sort | uniq > EXPORTED
 test_expect_equal_file EXPORTED ACTUAL