3 # Copyright (c) 2011 David Bremner
6 # This test tests whether hiding Xapian::Error symbols in libnotmuch
7 # also hides them for other users of libxapian. This is motivated by
8 # the discussion in http://gcc.gnu.org/wiki/Visibility'
10 test_description='exception symbol hiding'
15 result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test 2>&1)
18 output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian'
19 caught No chert database found at path \`./nonexistant'"
21 mkdir -p fakedb/.notmuch
22 test_expect_success 'running test' run_test
23 test_begin_subtest 'checking output'
24 test_expect_equal "$result" "$output"