Add a test for adding and removing Listeners from a BroadcasterManager.
authorJim Ingham <jingham@apple.com>
Sat, 8 Feb 2020 01:48:47 +0000 (17:48 -0800)
committerJim Ingham <jingham@apple.com>
Sat, 8 Feb 2020 01:54:25 +0000 (17:54 -0800)
commitd62a343db23b7e8c3b5f2a0284bcacc10141a49e
tree1dcd5c8e997fa95b0600af9482d9fe3c8f68c4de
parent84eeee65804ba070c50978be1c741a1756779079
Add a test for adding and removing Listeners from a BroadcasterManager.

Reid found a bug in removing Listeners from a BroadcasterManager:

https://reviews.llvm.org/D74010

The bug didn't affect the case where there was only one Listener
signed up for a BroadcasterManager, which was all the extant test
case tests.  The driver also only uses one listener (the debugger)
for everything, so neither the test nor anything you do with lldb
command line would have triggered the bug.

This adds a couple more tests using more listeners, and adding and
removing them in a different way, which triggers a separate code path.
lldb/packages/Python/lldbsuite/test/api/listeners/TestListener.py