tests: add a test for symbol hiding side effects
authorDavid Bremner <bremner@debian.org>
Wed, 22 Jun 2011 11:58:01 +0000 (08:58 -0300)
committerDavid Bremner <bremner@debian.org>
Thu, 23 Jun 2011 10:05:25 +0000 (07:05 -0300)
commitfba968dbfa806dc517fc55d1f28cf208f0316863
treeb9a7fd4934b680498e7853b97ad46aa070f14c44
parentcdf1c70ab359772c1e89678e23614489596ba9eb
tests: add a test for symbol hiding side effects

The worry here is that a binary linking with libnotmuch might lose
access to Xapian::Error symbols because libnotmuch hides them.

We are careful here to create ./fakedb/.notmuch in order to trigger a
Xapian exception, and not just a missing file check.

Thanks to jrollins and amddragon for suggestions.
(cherry picked from commit 66f37f5f6864a988f94ddb893e3a176af57f6c8e)
test/basic
test/notmuch-test
test/symbol-hiding [new file with mode: 0755]
test/symbol-test.cc [new file with mode: 0644]