[PATCH v2 00/13] Simplify notification handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

This attempts to simplify notification handling by making queue_foreach
safe from entry removals during callback. In addition to that a couples
there are a couple of new unit test to emulate removal during event
callback and because of that Ive also included the coverage support again
since I used it to check what part of the code is being exercised.

v2: Make coverage target depend on lcov to be present and update test
coverage.

Luiz Augusto von Dentz (13):
  build: Add coverage support
  unit/test-queue: Add /queue/foreach_remove test
  unit/test-queue: Add /queue/foreach_remove_backward test
  shared/queue: Add reference counting to entries
  unit/test-mgmt: Add /mgmt/response/1 test
  unit/test-mgmt: Add /mgmt/response/2 test
  unit/test-mgmt: Add /mgmt/event/1 test
  unit/test-mgmt: Add /mgmt/event/2 test
  unit/test-mgmt: Add /mgmt/unregister/1 test
  unit/test-mgmt: Add /mgmt/unregister/2 test
  unit/test-mgmt: Add /mgmt/destroy/1 test
  shared/mgmt: Remove unnecessary code
  doc: Update mgmt-tester test coverage

 .gitignore            |   4 +
 Makefile.am           |  20 +++++
 acinclude.m4          |   4 +
 configure.ac          |   5 ++
 doc/test-coverage.txt |   4 +-
 src/shared/mgmt.c     |  89 +++-----------------
 src/shared/queue.c    |  77 +++++++++++-------
 unit/test-mgmt.c      | 220 +++++++++++++++++++++++++++++++++++++++++++++++++-
 unit/test-queue.c     |  46 +++++++++++
 9 files changed, 356 insertions(+), 113 deletions(-)

-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux