Add test cases for mutexing for async calls from the same thread.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Wed, 6 Jul 2011 18:09:26 +0000 (11:09 -0700)
committerJeremy Whiting <jpwhiting@kde.org>
Mon, 23 Jul 2012 15:11:16 +0000 (09:11 -0600)
commit1492a80a0a05988b32b1d49895002a738c68ebfc
tree8503a715b6caaed7712beb386bc506e13f1aff9a
parent67f8e41bcc56fe1c38f7e6eb4b60ef5dc971549a
Add test cases for mutexing for async calls from the same thread.

The standard Vala lock() call is a recursive lock, so it only prevents
concurrent access between different threads. But we rarely run in
distinct threads, so this test uses a more-complete solution that we can
depend upon (since the test will fail if its assumptions ever change in
Vala).

Helps: bgo#652637 - Don't hold locks across async calls
tests/folks/Makefile.am
tests/folks/async-locking.vala [new file with mode: 0644]