Added concurrent view test: test-client-view-operations.c
authorTristan Van Berkom <tristanvb@openismus.com>
Fri, 15 Feb 2013 09:34:05 +0000 (18:34 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Fri, 15 Feb 2013 09:47:06 +0000 (18:47 +0900)
commit4fe9f583fc00be7f613467343aa3d12e808c04d1
treebe4b4337ec88eb28ef291882bcfd11eb91df786d
parent8d80b9c69269c2723a572c09ea4ed2d2bfa5d63d
Added concurrent view test: test-client-view-operations.c

This tests concurrent access to EBookClientView, 20 threads each
race to receive notifications from the same addressbook and the
test asserts that all 5 contacts in the test addressbook are found.

This is particularly interesting with DEBUG_DIRECT set (Direct Read Access),
as it ensures that concurrent direct reads of the addressbook do not
cause any lockups.
tests/libebook/client/Makefile.am
tests/libebook/client/test-client-view-operations.c [new file with mode: 0644]