X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fsymbol-hiding;h=7fa7b2aaac5635945a7162e086f577d023951878;hb=e0d85656da7f4d6e7d0b66a7bece39724143bffe;hp=6d4e4fff001742111ec47ad84bbbf6e333a421b1;hpb=db17dd46c09707d2c999de9f72bb2b84447bd5a8;p=notmuch diff --git a/test/symbol-hiding b/test/symbol-hiding index 6d4e4fff..7fa7b2aa 100755 --- a/test/symbol-hiding +++ b/test/symbol-hiding @@ -12,7 +12,7 @@ test_description='exception symbol hiding' . ./test-lib.sh run_test(){ - result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test 2>&1) + result=$(LD_LIBRARY_PATH="$TEST_DIRECTORY/../lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $TEST_DIRECTORY/symbol-test 2>&1) } output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian' @@ -24,4 +24,10 @@ test_expect_success 'running test' run_test 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 +sed -n 's/[[:blank:]]*\(notmuch_[^;]*\);/\1/p' $TEST_DIRECTORY/../notmuch.sym | sort | uniq > EXPORTED +test_expect_equal_file EXPORTED ACTUAL + test_done