diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-11-05 19:36:30 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-11-06 08:27:44 +1100 |
commit | ec3cbb6c476698523c9b5ac047787df101746891 (patch) | |
tree | a2a8df4e4f97eba007e6048cb0a120e6bed138ff /buildtools/wafsamba/tests | |
parent | d02c8ba122cef7d8b254e5be3ae757eb3bb14235 (diff) | |
download | samba-ec3cbb6c476698523c9b5ac047787df101746891.tar.gz |
wafsamba.abi: Fix abi_match with both excludes and includes.
This fixes a regression introduced by 9c3e294400234ebdf9b98031bae583524fd0b0ac
which caused internal symbols in libldb to be exposed.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9357
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'buildtools/wafsamba/tests')
-rw-r--r-- | buildtools/wafsamba/tests/test_abi.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/buildtools/wafsamba/tests/test_abi.py b/buildtools/wafsamba/tests/test_abi.py index 42c4697cde7..bba78c1ba07 100644 --- a/buildtools/wafsamba/tests/test_abi.py +++ b/buildtools/wafsamba/tests/test_abi.py @@ -101,3 +101,20 @@ MYLIB_0.1 { \t\texc_*; }; """) + + def test_excludes_and_includes(self): + f = StringIO() + abi_write_vscript(f, "MYLIB", "1.0", [], { + "pub_foo": "1.0", + "exc_bar": "1.0", + "other": "1.0" + }, ["pub_*", "!exc_*"]) + self.assertEquals(f.getvalue(), """\ +1.0 { +\tglobal: +\t\tpub_*; +\tlocal: +\t\texc_*; +\t\t*; +}; +""") |