]> git.notmuchmail.org Git - notmuch/blobdiff - test/T360-symbol-hiding.sh
test: make python tests compatible with python3
[notmuch] / test / T360-symbol-hiding.sh
index 636ec9171a2f32a9564c55d6d2a7e16277756ff5..d2b5d1f5a90281bbf69f9d2b968ab3ff2cbd8761 100755 (executable)
@@ -16,7 +16,7 @@ run_test(){
 }
 
 output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian'
-caught No chert database found at path \`./nonexistant'"
+caught No chert database found at path \`./nonexistent'"
 
 mkdir -p fakedb/.notmuch
 
@@ -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