libei/test
Peter Hutterer eb40872770 Fix client-side removal of devices
Because events may be in-transit when a client removes the device, we need to
make this a full roundtrip to the server. Otherwise the client may assume a
device is removed, releases all references and then gets the original device
added event for that device. Better to have this as a round-trip instead.

This requires the server to call eis_device_disconnect() on the removed
notifications but we do so during eis_event_unref() anyway in case the server
forgets.

And it changes some of the API behaviors, so adjust the tests for that.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-24 10:41:55 +10:00
..
buildtest.c Include stddef.h for size_t 2020-08-24 13:01:37 +10:00
eierpecken.c test: add a new peck EI behavior flag 2020-09-23 15:49:44 +10:00
eierpecken.h test: add a new peck EI behavior flag 2020-09-23 15:49:44 +10:00
test-ei.c Fix client-side removal of devices 2020-09-24 10:41:55 +10:00
test-eis.c Fix client-side removal of devices 2020-09-24 10:41:55 +10:00
unit-tests.c Factor out munit test handling into a set of helpers 2020-08-20 14:44:38 +10:00